[Bug 565481] Re: PHP preg_match doesn't match matching string
Vladimir Kolesnikov
565481 at bugs.launchpad.net
Sun Aug 15 13:03:24 BST 2010
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
Server Team, which is subscribed to php5 in ubuntu.
More information about the Ubuntu-server-bugs
mailing list