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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 + 38 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 21:01:27 2024 UTC