Bug #18420: ob_gzhandler returns nothing

From: Date: Thu, 18 Jul 2002 19:27:32 +0000
Subject: Bug #18420: ob_gzhandler returns nothing
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14556@lists.php.net to get a copy of this message
From: yves@unclassified.de Operating system: linux PHP version: 4.1.2 PHP Bug Type: Output Control Bug description: ob_gzhandler returns nothing I wanted to process the output buffer by myself first to 'tidy up' HTML/JavaScript code a bit and then use the gzip-compression for a faster transfer. I used this demo script to test this: <?php function my_ob_handler($x) { # this normally tidies html code.... return strtoupper($x); } function proc_out($x) { return ob_gzhandler(my_ob_handler($x)); #return my_ob_handler($x); } if (ob_get_length() === false) { #ob_start("ob_gzhandler"); ob_start("proc_out"); } ?> abcABCabc12345 . When I only set "ob_gzhandler" as output handler, it works and I see the text. When I use "proc_out" and don't call "ob_gzhandler" by myself, it also works. But when I want to use both handlers in queue, I get nothing at all. My provider uses PHP 4.1.1 and I can't upgrade it! I have PHP 4.2.1 at home but with no zlib support to test this. -- Edit bug report at http://bugs.php.net/?id=18420&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18420&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18420&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18420&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18420&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18420&r=support Expected behavior: http://bugs.php.net/fix.php?id=18420&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18420&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18420&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18420&r=globals

« previous php.bugs (#14556) next »