From: hirainchen at gmail dot com Operating system: ALL PHP version: 5.2.3 PHP Bug Type: PCRE related Bug description: Pcre functions doesn't work well
Description: ------------ PCRE Library Version => 7.0 18-Dec-2006 this version PCRE seems doesn't work well with PHP. I met same problem with php5.2.1+PCRE 7.0 in FreeBSD, resolved by downgrading to PCRE 6.7(blog detail: http://translate.google.com/translate?u=http%3A%2F%2Fhi.baidu.com%2Frainchen%2Fblog%2Fitem%2Fb6321038cf289bf3b211c7bf.html&langpair=zh%7Cen&hl=en&newwindow=1&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools) I had tried to set php.ini as : [Pcre] pcre.backtrack_limit=100000 pcre.recursion_limit=100000 but not helping Reproduce code: --------------- <?php $str = "repeater id='loopt' dataSrc=subject colums=2"; preg_match_all("/(['\"])((.*(\\\\\\1)*)*)\\1/sU",$str,$str_instead); echo "<xmp>"; print_r($str_instead); ?> Expected result: ---------------- <xmp>Array ( [0] => Array ( [0] => 'loopt' ) [1] => Array ( [0] => ' ) [2] => Array ( [0] => loopt ) [3] => Array ( [0] => loopt ) [4] => Array ( [0] => ) ) Actual result: -------------- <xmp>Array ( [0] => Array ( ) [1] => Array ( ) [2] => Array ( ) [3] => Array ( ) [4] => Array ( ) ) -- Edit bug report at http://bugs.php.net/?id=41638&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41638&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41638&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41638&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41638&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41638&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41638&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41638&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41638&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41638&r=support Expected behavior: http://bugs.php.net/fix.php?id=41638&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41638&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41638&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41638&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41638&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41638&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41638&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41638&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41638&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41638&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41638&r=mysqlcfg
