ID:               32508
 Updated by:       [EMAIL PROTECTED]
 Reported By:      myronwu at gmail dot com
 Status:           Verified
 Bug Type:         Output Control
 Operating System: *
 PHP Version:      4CVS, 5CVS (2005-03-31)
 New Comment:

Also this was there:

PHP Fatal error:  Allowed memory size of 725463920 bytes exhausted at
/usr/src/php/php5/main/output.c:229



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

[2005-03-31 21:12:50] [EMAIL PROTECTED]

Nobody should try this at home. :)
Definately eats all memory and eventually crashes.

Here's what I got in error_log:

PHP Fatal error:  Allowed memory size of 1603177144 bytes exhausted at
/usr/src/php/php5/ext/zlib/zlib.c:623 


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

[2005-03-31 19:27:56] myronwu at gmail dot com

Let me clarify some more, here's some more ob_start 
calls that you can substitute into the reproduce code 
given:

These work OK:

ob_start();
ob_start(null, 2048);
ob_start(null, 1024);
ob_start('ob_gzhandler');

These don't work:

ob_start('ob_gzhandler', 1024);
ob_start('ob_gzhandler', 2048);
ob_start('ob_gzhandler', 1);

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

[2005-03-31 19:22:10] myronwu at gmail dot com

Pretty convinced this occurs whenever chunking occurs, 
irrespective of what the chunk size is.  Setting it to 
something silly like 1 also has the same problem, for 
example.

I also confirmed again the same behaviour on a Mac OS X 
(10.3.8) machine, with its default php 4.3.10 setup over 
Apache 1.3.33, zlib 1.1.4.  Configure command is just 
what's default on os x, but if you don't have an os x 
machine handy, it's:

'/SourceCache/apache_mod_php/apache_mod_php-17.5/php/
configure' '--prefix=/usr' '--mandir=/usr/share/man' '--
infodir=/usr/share/info' '--with-apxs' '--with-ldap=/
usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-
dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-
exif' '--enable-ftp' '--enable-mbstring' '--enable-
mbregex' '--enable-dbx' '--enable-sockets' '--with-
iodbc=/usr' '--with-curl=/usr' '--with-config-file-
path=/etc' '--sysconfdir=/private/etc'

The php.ini is untouched from defaults.

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

[2005-03-31 09:34:17] [EMAIL PROTECTED]

You can always make the chunk size smaller than 2048?
Or doesn't this problem occur then?


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

[2005-03-31 08:33:29] myronwu at gmail dot com

Sorry, it's my sysadmin that set up those 
configure variables....

Anyway, we used phpinfo() for example code because it 
outputs something larger than the example chunk size I 
was using of 2048 bytes.  I could manually write out 
more than 2048, but that probably wouldn't be as concise 
for bug reporting.

The problem we have specifically arises when the 
ob_gzhandler attempts to send out chunks.

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

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/32508

-- 
Edit this bug report at http://bugs.php.net/?id=32508&edit=1

Reply via email to