ID: 47962
Updated by: [email protected]
Reported By: poltorak at alsenet dot com
-Status: Open
+Status: Closed
Bug Type: PCRE related
Operating System: Ubuntu Linux
-PHP Version: 5.2.9
+PHP Version: 5.2.6
New Comment:
Works fine with PHP 5.2.9. Update!
Previous Comments:
------------------------------------------------------------------------
[2009-04-13 15:50:54] poltorak at alsenet dot com
Description:
------------
This code cause segmentation fault in PHP Version 5.2.6-2ubuntu4.1
I can't check it on 5.2.9 for now. Please check.
If I reduce 200 (in for cycle) to 100, everything works.
If I delete ",'1'" at the end of $t string, everything works.
Reproduce code:
---------------
<?
$t = "'1','8','10','1','5','3','0','0','0','4','2','9','0','1';";
$a = "";
for ($i=0; $i<200; $i++)
$a .= $t;
print
preg_split("/;+(?=([^'|^\\\']*['|\\\'][^'|^\\\']*['|\\\'])*[^'|^\\\']*[^'|^\\\']$)/",
$a);
?>
Expected result:
----------------
Array
Actual result:
--------------
Segmentation Fault in error_log and empty page in browser.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47962&edit=1