php.net |  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
Votes:2
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: atom at smasher dot org
New email:
PHP Version: OS:

 

 [2006-03-09 09:15 UTC] 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.



Patches

Pull Requests

History

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] vrana@php.net
I can confirm the behavior but could not find any place in the sources which explains it.
 [2010-03-18 18:42 UTC] kalle@php.net
-Type: Documentation Problem +Type: Bug -Package: Documentation problem +Package: Output Control
 [2010-03-18 18:42 UTC] 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.
 [2011-09-19 14:41 UTC] mike@php.net
-Status: Verified +Status: Feedback
 [2011-09-19 14:41 UTC] mike@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [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: Sat Dec 21 15:01:29 2024 UTC