#19391 [Opn->Ver]: ob_gzhandler outputs Content-encoding: gzip even if ob_end_clean() is called
| From: | iliaa@php.net | Date: | Tue, 01 Oct 2002 00:29:47 +0000 |
| Subject: | #19391 [Opn->Ver]: ob_gzhandler outputs Content-encoding: gzip even if ob_end_clean() is called | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20840@lists.php.net to get a copy of this message | ||
ID: 19391
Updated by: iliaa@php.net
Reported By: ian@penguinhosting.net
-Status: Open
+Status: Verified
Bug Type: Output Control
-Operating System: Solaris 8
+Operating System: Solaris 8/Linux
PHP Version: 4.2.3
Previous Comments:
------------------------------------------------------------------------
[2002-09-13 08:57:56] ian@penguinhosting.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19391&edit=1