Skip to content

Commit

Permalink
doctrine#44 - reverting doctrine#44 patch by using a matcher that all…
Browse files Browse the repository at this point in the history
…ows a longer sequence to be parsed

Note that this doesn't solve the stack overflow issue with `preg_split()`, but just increases the size of the string that could be matched.
  • Loading branch information
Ocramius committed Dec 19, 2014
1 parent f177d96 commit 918ba14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Common/Annotations/DocLexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected function getCatchablePatterns()
return array(
'[a-z_\\\][a-z0-9_\:\\\]*[a-z_][a-z0-9_]*',
'(?:[+-]?[0-9]+(?:[\.][0-9]+)*)(?:[eE][+-]?[0-9]+)?',
'"(?:[^"])*"',
'"(?:""|[^"])*"',
);
}

Expand Down

0 comments on commit 918ba14

Please sign in to comment.