|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-24 09:01 UTC] tony2001@php.net
[2006-11-24 14:19 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 20:00:01 2025 UTC |
Description: ------------ I installed the latest snapshot of PHP 5.2.0-dev compilen 2006-11-22. Sometimes (not always) preg_match_all couses the "Segmentation fault" error while processing some content. Reproduce code: --------------- <?php echo "Start\n"; // preg_match_all crashes on this file $content = file_get_contents("http://makl.ru/content.txt"); // Regexp $pattern="/<form[^<>]*>((.(?!\/form>))+)<\/form>/si"; $res = array(); preg_match_all($pattern,$content,$res); echo "\n\nDone!"; var_dump($res); ?> Expected result: ---------------- Expecting the part of text from content.txt between <form> ... </form> tags. Actual result: -------------- Start Segmentation fault