|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-10-24 01:18 UTC] yasuo_ohgaki at yahoo dot com
It seems zlib compression is broken in 4.1.0RC. [23-Oct-2001 20:14:19] PHP Fatal error: Allowed memory size of 8388608 bytes exhausted at zlib.c:995 (tried to allocate 2610349 bytes) in /home/yohgaki/public_html/test/phpinfo.php on line 1 Apache 1.3.20/PHP 4.1.0RC CVS/Linux 2.4.4 glibc 2.2.2 Is this happening only to me? PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 19:00:01 2025 UTC |
Tested with current 4.1.0RC/4.2.0 CVS. configure: #! /bin/sh # # Created by configure './configure' \ '--with-apxs' \ '--disable-short-tags' \ '--without-mysql' \ '--without-pear' \ '--with-zlib' \ '--enable-debug' \ "$@" php.ini : php.ini-recommended with zlib compression ON test script #1 (more than buf size): <?php for ($i=0; $i < 1026; $i++) { echo "abcd"; } ?> test script #2 (less than buf size): ?php for ($i=0; $i < 1022; $i++) { echo "abcd"; } ?> result - 4.1.0RC: 4.1.0RC works fine without zlib compression, but not with zlib output compression. httpd just keeps growing when output exceed buf size. (I killed it when it became 100MB) It cannot display phpinfo(). There are many log entry for memory leak for apache. result - 4.2.0: It seems there is no problem in 4.2.0 now. It works for both script and can display phpinfo(). (It was not working before, at least when 4.1.0RC1 is released.) output.c has not been changed. It seems real problem was in some other place.