From 49040c9104e7c18e8a02a0951e9d585e9d4d4604 Mon Sep 17 00:00:00 2001 From: Mike van Riel Date: Fri, 13 Jul 2012 20:07:51 +0200 Subject: [PATCH] Fixing the other RegExes as well since they were also not using the u modifier --- src/phpDocumentor/Reflection/DocBlock.php | 2 +- src/phpDocumentor/Reflection/DocBlock/LongDescription.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phpDocumentor/Reflection/DocBlock.php b/src/phpDocumentor/Reflection/DocBlock.php index 5b23004..a3e07a1 100644 --- a/src/phpDocumentor/Reflection/DocBlock.php +++ b/src/phpDocumentor/Reflection/DocBlock.php @@ -99,7 +99,7 @@ class DocBlock implements \Reflector { $comment = trim( preg_replace( - '#[ \t]*(?:\/\*\*|\*\/|\*)?[ \t]{0,1}(.*)?#', '$1', $comment + '#[ \t]*(?:\/\*\*|\*\/|\*)?[ \t]{0,1}(.*)?#u', '$1', $comment ) ); diff --git a/src/phpDocumentor/Reflection/DocBlock/LongDescription.php b/src/phpDocumentor/Reflection/DocBlock/LongDescription.php index 1549edc..8c068db 100644 --- a/src/phpDocumentor/Reflection/DocBlock/LongDescription.php +++ b/src/phpDocumentor/Reflection/DocBlock/LongDescription.php @@ -35,7 +35,7 @@ class LongDescription implements \Reflector */ public function __construct($content) { - if (preg_match('/\{\@(.+?)\}/', $content, $matches)) { + if (preg_match('/\{\@(.+?)\}/u', $content, $matches)) { array_shift($matches); foreach ($matches as $tag) { $this->tags[] = Tag::createInstance('@' . $tag);