#36663 [Opn]: unexpected difference between "zlib.output_compression" and "ob_gzhandler"

From: Date: Thu, 09 Mar 2006 15:46:59 +0000
Subject: #36663 [Opn]: unexpected difference between "zlib.output_compression" and "ob_gzhandler"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94101@lists.php.net to get a copy of this message
 ID:               36663
 User updated by:  atom at smasher dot org
 Reported By:      atom at smasher dot org
 Status:           Open
 Bug Type:         Output Control
 Operating System: FreeBSD
 PHP Version:      4.4.2
 New Comment:

If nothing else, this would at least be a documentation bug.


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

[2006-03-09 09:15:26] atom at smasher dot org

Description:
------------
if php.ini has:
    output_handler = ob_gzhandler
dynamically generated JPGs are output with gzip (Content-Encoding:
gzip).

if php.ini has (instead):
    zlib.output_compression = on
dynamically generated JPGs are output without gzip.

In both cases the HTTP request includes "Accept-Encoding: gzip".

It does seem stupid to attempt to compress a compressed image file, but
I can't find any documentation that explains which way is the "right"
way to do it, or how to override the default behavior.




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


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


Thread (5 messages)

« previous php.bugs (#94101) next »