|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-13 16:28 UTC] jani@php.net
[2015-11-27 06:07 UTC] qp10509 at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 21:00:02 2025 UTC |
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.