ID: 43011 Comment by: felipensp at gmail dot com Reported By: sjungwirth at matrix-consultants dot com Status: Open Bug Type: Reproducible crash Operating System: Linux 2.4.21 PHP Version: 5.2.4 New Comment:
It's works with the newer version in CVS. Previous Comments: ------------------------------------------------------------------------ [2007-10-17 23:58:46] sjungwirth at matrix-consultants dot com Description: ------------ positive lookbehind is causing seg fault in preg_match_all, If i take out the positive lookbehind, it doesn't crash. Reproduce code: --------------- <?php echo "starting\n"; $subject = "enum('active','inactive','rockin\'')"; $pattern = "/'(([^']*((?<=\\\\)')?)*)'/"; preg_match_all($pattern,$subject ,$matches); print_r($matches); echo "done."; Expected result: ---------------- starting Array ( [0] => Array ( [0] => 'active' [1] => 'inactive' [2] => 'rockin\'' ) [1] => Array ( [0] => active [1] => inactive [2] => rockin\' ) [2] => Array ( [0] => [1] => [2] => ) [3] => Array ( [0] => [1] => [2] => ' ) ) done. Actual result: -------------- starting Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43011&edit=1