From: andreyik at gmail dot com Operating system: WinXP PHP version: 5.2.2 PHP Bug Type: PCRE related Bug description: problems with prce assertions
Description: ------------ negative assertions doesn't work with long text (~60000bytes) as expected Reproduce code: --------------- function test($str, $cnt) { $str = 'test "123'.str_repeat($str,$cnt).'456"'; return preg_match('#".*?(?<!\\\\)"#', $str); } var_dump(test('\"', 20000)); //40K var_dump(test('\"', 30000)); //60K <-- var_dump(test('"', 100000)); //100K Expected result: ---------------- X-Powered-By: PHP/4.4.4 Content-type: text/html int(1) int(1) <-- int(1) Actual result: -------------- X-Powered-By: PHP/5.2.0 ( and PHP/5.2.2) Content-type: text/html int(1) int(0) <-- int(1) -- Edit bug report at http://bugs.php.net/?id=41426&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41426&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41426&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41426&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41426&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41426&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41426&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41426&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41426&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41426&r=support Expected behavior: http://bugs.php.net/fix.php?id=41426&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41426&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41426&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41426&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41426&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41426&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41426&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41426&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41426&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41426&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41426&r=mysqlcfg