diff options
author | Philipp Knechtges <philipp-dev@knechtges.com> | 2014-12-13 02:16:37 +0100 |
---|---|---|
committer | Philipp Knechtges <philipp-dev@knechtges.com> | 2014-12-13 02:16:37 +0100 |
commit | 533e8e14b64aeea8f3190eaaff208ed9a533dd13 (patch) | |
tree | fc35e83ea66e55264ed0029b83293336b3cc1bd1 /lib | |
parent | 60099b91c42c55c140d57d83c5cff63e30fd637b (diff) | |
download | nextcloud-server-533e8e14b64aeea8f3190eaaff208ed9a533dd13.tar.gz nextcloud-server-533e8e14b64aeea8f3190eaaff208ed9a533dd13.zip |
make regex in controllermethodreflector.php compatible with PCRE 6.x
The syntax ?<...> seems to be only supported from PCRE 7.0 on. For
backwards-compability ?P<...> is used.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/appframework/utility/controllermethodreflector.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/appframework/utility/controllermethodreflector.php b/lib/private/appframework/utility/controllermethodreflector.php index d5cf2f52eb2..045bfc8b9ba 100644 --- a/lib/private/appframework/utility/controllermethodreflector.php +++ b/lib/private/appframework/utility/controllermethodreflector.php @@ -54,7 +54,7 @@ class ControllerMethodReflector { $this->annotations = $matches[1]; // extract type parameter information - preg_match_all('/@param (?<type>\w+) \$(?<var>\w+)/', $docs, $matches); + preg_match_all('/@param (?P<type>\w+) \$(?P<var>\w+)/', $docs, $matches); // this is just a fix for PHP 5.3 (array_combine raises warning if called with // two empty arrays if($matches['var'] === array() && $matches['type'] === array()) { |