Bug #36663 [Ver->Fbk]: unexpected difference between "zlib.output_compression" and "ob_gzhandler"
| From: | mike@php.net | Date: | Mon, 19 Sep 2011 14:41:42 +0000 |
| Subject: | Bug #36663 [Ver->Fbk]: unexpected difference between "zlib.output_compression" and "ob_gzhandler" | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163684@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=36663&edit=1
ID: 36663
Updated by: mike@php.net
Reported by: atom at smasher dot org
Summary: unexpected difference between
"zlib.output_compression" and "ob_gzhandler"
-Status: Verified
+Status: Feedback
Type: Bug
Package: Output Control
Operating System: FreeBSD
PHP Version: 4.4.2
Block user comment: N
Private report: N
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.4-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2010-03-18 18:42:42] kalle@php.net
Re-classified for it to be confirmed behavoir, please change back to a documentation issue and as
"To be documented" if this indeed is expected behavoir.
------------------------------------------------------------------------
[2009-11-23 13:34:05] vrana@php.net
I can confirm the behavior but could not find any place in the sources which explains it.
------------------------------------------------------------------------
[2006-03-09 16:46:57] atom at smasher dot org
If nothing else, this would at least be a documentation bug.
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=36663&edit=1