ID: 30153 Updated by: [EMAIL PROTECTED] Reported By: OvdSpek at LIACS dot NL -Status: Open +Status: Verified -Bug Type: Reproducible crash +Bug Type: Zlib Related -Operating System: Windows XP +Operating System: * -PHP Version: 4.3.9 +PHP Version: 4CVS, 5CVS (20040929) New Comment:
# php -dmemory_limit=100000000000000000000 t.php Allowed memory size of 2147483647 bytes exhausted at /usr/src/web/php/php4/ext/zlib/zlib.c:628 (tried to allocate 1207205888 bytes) Previous Comments: ------------------------------------------------------------------------ [2004-09-24 21:25:56] OvdSpek at LIACS dot NL The bug is in 4.3.9 final too. ------------------------------------------------------------------------ [2004-09-19 16:17:24] OvdSpek at LIACS dot NL Description: ------------ The following PHP script appears to cause a full crash/restart of my Apache/2.0.50 (Win32) PHP/4.3.9RC3 Server at localhost Port 80 server on Windows XP. http://213.46.64.114/temp/php_crash.bin http://62.216.18.38/temp/php_crash.bin Reproduce code: --------------- <?php $s = file_get_contents('f:/temp/php_crash.bin'); gzinflate(substr($s, 10)); ?> Expected result: ---------------- No errors. Actual result: -------------- FATAL: erealloc(): Unable to allocate 603602944 bytes [Sun Sep 19 16:11:16 2004] [notice] Parent: child process exited with status 1 -- Restarting. [Sun Sep 19 16:11:16 2004] [notice] Parent: Created child process 3908 [Sun Sep 19 16:11:16 2004] [notice] Child 3908: Child process is running [Sun Sep 19 16:11:16 2004] [notice] Child 3908: Acquired the start mutex. [Sun Sep 19 16:11:16 2004] [notice] Child 3908: Starting 250 worker threads. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30153&edit=1