|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36663 unexpected difference between "zlib.output_compression" and "ob_gzhandler"
Submitted: 2006-03-09 09:15 UTC Modified: 2013-02-18 00:29 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: atom at smasher dot org Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.4.2 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: atom at smasher dot org
New email:
PHP Version: OS:


 [2006-03-09 09:15 UTC] atom at smasher dot org
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-09 16:46 UTC] atom at smasher dot org
If nothing else, this would at least be a documentation bug.
 [2009-11-23 13:34 UTC]
I can confirm the behavior but could not find any place in the sources which explains it.
 [2010-03-18 18:42 UTC]
-Type: Documentation Problem +Type: Bug -Package: Documentation problem +Package: Output Control
 [2010-03-18 18:42 UTC]
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.
 [2011-09-19 14:41 UTC]
-Status: Verified +Status: Feedback
 [2011-09-19 14:41 UTC]
Please try using this snapshot:
For Windows:

 [2013-02-18 00:29 UTC] php-bugs at lists dot php dot 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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 02:01:30 2024 UTC