#18930 [Fbk]: foreach() causes httpd child to segfault
| From: | rasmus@php.net | Date: | Fri, 16 Aug 2002 01:37:32 +0000 |
| Subject: | #18930 [Fbk]: foreach() causes httpd child to segfault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16973@lists.php.net to get a copy of this message | ||
ID: 18930
Updated by: rasmus@php.net
Reported By: tolli@tol.li
Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 4.2.2
New Comment:
Oh, my script was:
$a = array(1,2,3);
foreach($a as $s=>$s);
tested with current CVS.
Previous Comments:
------------------------------------------------------------------------
[2002-08-15 21:36:15] rasmus@php.net
Unable to reproduce here. Could you provide the shortest possible
script that reproduces this?
------------------------------------------------------------------------
[2002-08-15 19:55:40] kalowsky@php.net
re-opening, seems I checked the wrong logfile on FreeBSD. It does
occur there as well.
------------------------------------------------------------------------
[2002-08-15 19:51:57] kalowsky@php.net
Unable to reproduce on OSX, or FreeBSD 4.6. Check your local install
agian please.
------------------------------------------------------------------------
[2002-08-15 19:30:19] tolli@tol.li
Trying to assign key and value to the same
variable with foreach leads to a segmentation
fault of the httpd child processing the request
(using apxs):
foreach ($arr as $s => $s)
./configure --with-apxs=/var/apache/bin/apxs
--with-pgsql=/usr/include/pgsql --without-mysql
--with-gd
Apache 1.3.26 compiled with loadable modules
support.
Apache error log shows:
[Thu Aug 15 23:20:02 2002] [notice] child pid
1918 exit signal Segmentation fault (11)
[Thu Aug 15 23:20:02 2002] [notice] child pid
1910 exit signal Segmentation fault (11)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18930&edit=1