|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-30 16:27 UTC] mikemc-phpbug at terabytemedia dot com
[2011-11-30 16:28 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2011-11-30 16:28 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 04:00:02 2025 UTC |
Description: ------------ Tested this on my custom built 5.3.8 and the standard 5.3.8 that ships with FC 15 - same result in both so I assume it is not specific to my build. Run the test code - it will segfault. Not sure if this is PHP related (PHP hooks into PCRE) or solely lives inside PCRE. Test script: --------------- <?php $input = " ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. ................................................................................................................................................................................................. "; echo preg_replace('/(\.\s?){3,}/', '...', $input); Expected result: ---------------- Not to dump core Actual result: -------------- Dumped core