This is neither PHP nor PCRE bug — the default backtrack limit
(xontrolled by pcre.backtrack_limit configuration directive) used by PHP
is too low for this case.
That is,
$ php
<?php
$res = preg_match("/^(?:[^\[\]{}']+|'[^']*')+:(?:[^\[\]{}']+|'[^']*')+$/",
"a:bbbbbbbbbbbbb");
echo $res, ' ', preg_last_error(), "\n";
?>
0 2
2 is PREG_BACKTRACK_LIMIT_ERROR.
--
PHP preg_match doesn't match matching string
https://bugs.launchpad.net/bugs/565481
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs