ID: 32508
User updated by: myronwu at gmail dot com
Reported By: myronwu at gmail dot com
Status: Open
Bug Type: Output Control
Operating System: Linux 2.4 + Mac OS X
PHP Version: 5.0.3
New Comment:
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);
Previous Comments:
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
[2005-03-31 08:20:56] [EMAIL PROTECTED]
Does it only happen when you have phpinfo() in there?
(I'd put something else between there..)
Also, try doing ./configure --help sometimes. You have several options
used that don't even exist. Like --enable-track-vars, --with-apache2..
------------------------------------------------------------------------
[2005-03-31 02:15:34] myronwu at gmail dot com
Reconfirmed the bug using the reproduce code on CVS snapshot
php5-STABLE-200503302230, configure command:
'./configure' '--with-mysqli=/usr/local/mysql/bin/mysql_config'
'--with-mysql=/usr/local/mysql'
'--with-apache2=/usr/src/apache/httpd-2.0.53' '--enable-yp'
'--enable-track-vars' '--with-zlib' '--with-jpeg' '--with-png'
'--with-tiff' '--with-pdflib' '--with-gd'
'--with-apxs2=/var/www/bin/apxs' '--with-gettext' '--with-pspell'
Otherwise same setup as reported above.
------------------------------------------------------------------------
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