ID:               18930
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      4.2.2
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

The crash is gone. The remaining memory leaks are the result of a
recursive reference to the $s variable.


Previous Comments:
------------------------------------------------------------------------

[2002-08-19 10:31:28] [EMAIL PROTECTED]

http://nohn.net/lalafarm/php_foreach_strace.txt

------------------------------------------------------------------------

[2002-08-19 10:16:50] [EMAIL PROTECTED]

Linux 2.4.19 PHP 4.3.0-dev (20020819)

php -r ' foreach($_SERVER as $s => $s ); '

Resulted in:

/home/rei/php4/Zend/zend_hash.c(1056) :  Freeing 0x0827AAB4 (6 bytes),
script=-
Last leak repeated 47 times
/home/rei/php4/Zend/zend_execute.c(2310) :  Freeing 0x0827AA74 (12
bytes), script=-
Last leak repeated 47 times

No segmentation fault, however a whole bunch of memory leaks.

------------------------------------------------------------------------

[2002-08-19 10:03:18] [EMAIL PROTECTED]

Could neither reproduce with with php4-latest and php4-latest-stable
(CLI) on CompaqTru64/Alpha

------------------------------------------------------------------------

[2002-08-19 09:59:08] [EMAIL PROTECTED]

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)

------------------------------------------------------------------------

[2002-08-17 00:12:28] [EMAIL PROTECTED]

marking as open

------------------------------------------------------------------------

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

Reply via email to