php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19391 ob_gzhandler outputs Content-encoding: gzip even if ob_end_clean() is called
Submitted: 2002-09-13 08:57 UTC Modified: 2002-10-01 05:16 UTC
From: ian at penguinhosting dot net Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.2.3 OS: Solaris 8/Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ian at penguinhosting dot net
New email:
PHP Version: OS:

 

 [2002-09-13 08:57 UTC] ian at penguinhosting dot net
When the following PHP script:

<?php
ob_start("ob_gzhandler");
ob_end_clean();
print "foo!\n";
?>

is called from a client that sends "Accept-encoding: gzip", it produces the following result:

-----------------------
HTTP/1.1 200 OK
Date: Fri, 13 Sep 2002 13:53:34 GMT
Server: Apache/1.3.26 (Unix) PHP/4.2.3 mod_ssl/2.8.10 OpenSSL/0.9.6e
X-Powered-By: PHP/4.2.3
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 26
Content-Type: text/html

foo!
-----------------------

The output is not gzip'ed, but the header still indicates that it is.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-30 22:11 UTC] yohgaki@php.net
Once you enable compression buffer, it cannot be deleted. Since deleting it does not make sense at all.
 [2002-10-01 05:16 UTC] yohgaki@php.net
Status change
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 22:01:28 2024 UTC