Bug #60761 [Com]: zlib.output_compression fails on refresh
| From: | adunar at gmail dot com | Date: | Sun, 15 Apr 2012 02:27:16 +0000 |
| Subject: | Bug #60761 [Com]: zlib.output_compression fails on refresh | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169603@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60761&edit=1
ID: 60761
Comment by: adunar at gmail dot com
Reported by: valentiny510 at yahoo dot es
Summary: zlib.output_compression fails on refresh
Status: Assigned
Type: Bug
Package: *Compression related
Operating System: xp
PHP Version: 5.4.0RC5
Assigned To: mattficken
Block user comment: N
Private report: N
New Comment:
The bug also happens with the cli-server SAPI (both Windows and Ubuntu).
Here are a few (bash) commands that will reproduce this bug (assumes zlib.output_compression = On in
your php.ini)
echo "<?php echo '-------------------------------';" > bug.php
php -S 127.0.0.1:8888 > /dev/null 2>&1 &
curl --header "Accept-Encoding: gzip" http://localhost:8888/bug.php 2> /dev/null | wc -m
curl --header "Accept-Encoding: gzip" http://localhost:8888/bug.php 2> /dev/null | wc -m
# fg, then ctrl+c to kill php -S
If output_compression is working correctly, the two curl commands should print the same number
(approx. 16).
However with PHP 5.4, the second (and subsequent) curl commands print the size of the original
uncompressed output (31).
Previous Comments:
------------------------------------------------------------------------
[2012-04-14 23:56:24] adunar at gmail dot com
I am experiencing the same problem, using PHP 5.4.0 with the PHP-FPM
SAPI on Ubuntu.
zlib appears to only compress the output for the first request from
a particular worker process.
With the default settings it takes a few refreshes to run into the bug.
To reproduce immediately, set pm.start_servers = 1 in php-fpm.conf.
Afterwards, running "/etc/init.d/php5-fpm reload" allows another
request to be compressed before it stops working again.
------------------------------------------------------------------------
[2012-04-09 12:50:09] pajoye@php.net
Matt, please take a look at this bug.
------------------------------------------------------------------------
[2012-03-29 04:23:46] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bcfcfb2fc5f358ebfdc76a773b20b3fc056b20c0
Log: Fix bug #61519 test fails, should pass - ext/zlib/tests/bug60761.phpt
------------------------------------------------------------------------
[2012-03-27 16:26:35] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=bcfcfb2fc5f358ebfdc76a773b20b3fc056b20c0
Log: Fix bug #61519 test fails, should pass - ext/zlib/tests/bug60761.phpt
------------------------------------------------------------------------
[2012-03-16 09:28:32] mike@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=60761
--
Edit this bug report at https://bugs.php.net/bug.php?id=60761&edit=1