|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-18 00:38 UTC] felipensp at gmail dot com
[2007-10-22 08:49 UTC] jani@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 02 04:00:01 2025 UTC |
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