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.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to