ID: 29370 Comment by: brian at centurionservice dot com Reported By: anthony dot debhian at only-for dot info Status: Open Bug Type: Reproducible crash Operating System: Windows XP PHP Version: 5.0.0 New Comment:
Confirmed bug on RedHat 9, Apache 2.0.50, PHP 4.3.8. Reports a segmentation fault in the Apache error log and no entry in the access log. httpd seems to recover fine with no user interaction nessesary. Seg fault if ran through the CLI version on RedHat 9, PHP 4.3.8. Crashes on Windows XP, PHP 5 using the CLI version. Previous Comments: ------------------------------------------------------------------------ [2004-08-09 17:31:34] sbrown at truckstuffusa dot com Sorry, fogot to mention I'm running Redhat 9 here. ------------------------------------------------------------------------ [2004-08-09 17:30:27] sbrown at truckstuffusa dot com Confirmed this condition also exists on php 4.3.8 on Apache 2.0.50. Ran both segments of code given below. Each time the output of the script was good, but there was no access/error log generated by Apache. ------------------------------------------------------------------------ [2004-08-09 11:12:16] mart at __no_spam__spin dot ee I got the crach with PHP 4.3.7 + Apache 1.3.31 + Linux and PHP 4.3.4 + Apache 2.0.47 + Linux RH9. It didn't work with PHP 4.3.5 + Apache 1.3.29 + Win2K. A bit minimized version of this crash code: <?php function funcfunc($array){ foreach($array as $key=>$value) { $src.=$key; } return $src; } function funcfunc2($array){ foreach($array['foo'] as $key=>$value) { } } $a['x']['y']=""; $array=funcfunc($a); funcfunc2($array); ?> ------------------------------------------------------------------------ [2004-08-07 23:56:17] skippy at zuavra dot net Nothing special happens on Red Hat 9.0 with Apache 1.3.27, PHP 4.3.4. Just the normal complaint about foreach(). ------------------------------------------------------------------------ [2004-07-26 10:16:17] John at wargan dot org For info: This bug does'nt work on apache 1.3.24 & php 4.2.5 under Redhat and slackware. It seems to only be avalaible on Windows...as often ;) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/29370 -- Edit this bug report at http://bugs.php.net/?id=29370&edit=1