#32508 [Fbk->Opn]: ob_gzhandler w/ chunking can crash Apache 2
| From: | myronwu at gmail dot com | Date: | Thu, 31 Mar 2005 17:22:11 +0000 |
| Subject: | #32508 [Fbk->Opn]: ob_gzhandler w/ chunking can crash Apache 2 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76124@lists.php.net to get a copy of this message | ||
ID: 32508
User updated by: myronwu at gmail dot com
Reported By: myronwu at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: Output Control
-Operating System: Linux 2.4
+Operating System: Linux 2.4 + Mac OS X
PHP Version: 5.0.3
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-03-31 09:34:17] sniper@php.net
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] sniper@php.net
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.
------------------------------------------------------------------------
[2005-03-30 22:44:12] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
------------------------------------------------------------------------
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