#19391 [Opn->Bgs]: ob_gzhandler outputs Content-encoding: gzip even if ob_end_clean() is called

From: Date: Tue, 01 Oct 2002 10:16:05 +0000
Subject: #19391 [Opn->Bgs]: 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-20900@lists.php.net to get a copy of this message
ID: 19391 Updated by: yohgaki@php.net Reported By: ian@penguinhosting.net -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Solaris 8/Linux PHP Version: 4.2.3 New Comment: Status change Previous Comments: ------------------------------------------------------------------------ [2002-09-30 22:11:38] yohgaki@php.net Once you enable compression buffer, it cannot be deleted. Since deleting it does not make sense at all. ------------------------------------------------------------------------ [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

« previous php.bugs (#20900) next »