ID: 29370 Comment by: hazer at chipshot dot net 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:
Reproducable on Apache 2.0.48 mod_ssl OpenSSL0.9.7c PHP 5.0.0 Linux Kernel 2.6.7 GCC 3.2.2 Run through CLI it gives a seg fault. Viewed via web it gives nothing, even if there is something to be output before the code in question. It doesn't look like we can expect this to be used for 'hiding' pages on the server, but there is something that needs to be looked at... Previous Comments: ------------------------------------------------------------------------ [2004-08-09 22:41:52] brian at centurionservice dot com 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. ------------------------------------------------------------------------ [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(). ------------------------------------------------------------------------ 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