소스 검색

ZF-8566: fixed bug while parsing function parameter

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23317 44c647ce-9c0f-0410-b52a-842ac1e357ba
bate 15 년 전
부모
커밋
a49ee57636
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      library/Zend/Server/Reflection/Function/Abstract.php

+ 1 - 1
library/Zend/Server/Reflection/Function/Abstract.php

@@ -293,7 +293,7 @@ abstract class Zend_Server_Reflection_Function_Abstract
             // Get param types and description
             // Get param types and description
             if (preg_match_all('/@param\s+([^\s]+)/m', $docBlock, $matches)) {
             if (preg_match_all('/@param\s+([^\s]+)/m', $docBlock, $matches)) {
                 $paramTypesTmp = $matches[1];
                 $paramTypesTmp = $matches[1];
-                if (preg_match_all('/@param\s+\S+\s+(\$\S+)\s+(.*?)(@|\*\/)/s', $docBlock, $matches))
+                if (preg_match_all('/@param\s+\S+\s+(\$\S+)\s+(.*?)(?=@|*\/)/s', $docBlock, $matches))
                 {
                 {
                     $paramDesc = $matches[2];
                     $paramDesc = $matches[2];
                     foreach ($paramDesc as $key => $value) {
                     foreach ($paramDesc as $key => $value) {