#18930 [Opn]: foreach() causes httpd child to segfault

From: Date: Mon, 19 Aug 2002 13:59:09 +0000
Subject: #18930 [Opn]: foreach() causes httpd child to segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17190@lists.php.net to get a copy of this message
ID: 18930 Updated by: nohn@php.net Reported By: tolli@tol.li Status: Open Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.2.2 New Comment: Could NOT reproduce on SuSE 7.3/Apache 1.3.26/PHP 4.2.2 Configure: './configure' '--prefix=/usr/share' '--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--with-mysql=/usr/local/mysql-3.23.49a' '--with-gd=yes' '--enable-gd-native-ttf' '--enable-gd-imgstrttf' '--with-tiff-dir=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-ldap=yes' '--with-zlib=yes' '--with-bz2' '--with-gmp' '--with-xml' '--with-ttf' '--with-mcal=/usr' '--with-imap=yes' '--with-ftp' '--with-mcrypt' '--with-gettext' '--with-mm' '--enable-versioning' '--enable-trans-sid' '--enable-inline-optimization' '--enable-track-vars' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-shmop' '--enable-ftp' '--enable-wddx' '--with-imap-ssl' '--with-mnogosearch=/usr/local/mnogosearch' '--with-pgsql=/usr' '--enable-memory-limit=yes' '--with-apxs=/usr/sbin/apxs' '--with-ming=/usr' '--with-pdflib=/usr/local' Could also not verify with latest php 4.3-dev on that same machine (CLI Build) Previous Comments: ------------------------------------------------------------------------ [2002-08-17 00:12:28] kalowsky@php.net marking as open ------------------------------------------------------------------------ [2002-08-15 21:47:11] kalowsky@php.net Crashes here on OSX and FreeBSD with latest CVS. Try using the $_SERVER variables as your array. ------------------------------------------------------------------------ [2002-08-15 21:37:31] rasmus@php.net Oh, my script was: $a = array(1,2,3); foreach($a as $s=>$s); tested with current CVS. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ 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/18930 -- Edit this bug report at http://bugs.php.net/?id=18930&edit=1

« previous php.bugs (#17190) next »