Bug #60761 [Com]: zlib.output_compression fails on refresh

From: Date: Mon, 11 Jun 2012 22:43:33 +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-171207@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:         php at pointpro dot nl
 Reported by:        valentiny510 at yahoo dot es
 Summary:            zlib.output_compression fails on refresh
 Status:             Closed
 Type:               Bug
 Package:            *Compression related
 Operating System:   xp
 PHP Version:        5.4.0RC5
 Assigned To:        mike
 Block user comment: N
 Private report:     N

 New Comment:

This issue remains on ArchLinux running: PHP 5.4.3 (built: May 31 2012 10:40:02).

Because bug #55544 remains, I'm trying to use zlib.output_compression instead of ob_gzhandler.
Alas, it still doesn't work. At some occasions, usually the first after a restart of the
server, the output is correctly compressed. More often than not, however, the output is sent
uncompressed to the client.

The steps to reproduce mentioned below by adunar at gmail dot com still reproduce this problem at
this server. First time: compressed, subsequent times: uncompressed.

If more information is required, please let me know which. PHP is not giving any errors (I set
error_reporting to E_ALL), but just does not compress the output.


Previous Comments:
------------------------------------------------------------------------
[2012-05-22 02:11:55] asad at sadsa dot pl

What i can say i use now Apache compression !!

------------------------------------------------------------------------
[2012-05-20 06:42:32] pierre at archlinux dot de

I just tested this with 5.4.4RC1. While output compression is now on for more than just one request,
there is another drawback: I have several pools defined via fpm. One of them has
"php_flag[zlib.output_compression] = on".

Once the vhost using this pool is accessed output compression is turned on for all fpm pool and
cannot be turned off. Even worse: ini_get('zlib.output_compression') still reports false.

If you then use the ob_gzhandler you get "output handler 'ob_gzhandler' conflicts
with 'zlib output compression'"

------------------------------------------------------------------------
[2012-05-15 07:47:47] mike@php.net

Should be fixed in 5.4 and master.

------------------------------------------------------------------------
[2012-05-15 07:45:37] mike@php.net

Automatic comment on behalf of mike
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0ad53bfd7da12a92a46c08e3fff579a15026b88b
Log: fix bug #60761 zlib.output_compression fails on refresh

------------------------------------------------------------------------
[2012-05-12 13:42:53] pierre at archlinux dot de

I can still reproduce this bug on Arch Linux using PHP 5.4.3 (php-fpm). Which additional information
do you guys need? It seems pretty obvious to me.

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


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


Thread (12 messages)

« previous php.bugs (#171207) next »