Bug #18420 Updated: ob_gzhandler returns nothing
| From: | sniper@php.net | Date: | Thu, 18 Jul 2002 22:02:38 +0000 |
| Subject: | Bug #18420 Updated: ob_gzhandler returns nothing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14571@lists.php.net to get a copy of this message | ||
ID: 18420
Updated by: sniper@php.net
Reported By: yves@unclassified.de
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: linux
PHP Version: 4.1.2
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-07-18 15:27:31] yves@unclassified.de
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 this bug report at http://bugs.php.net/?id=18420&edit=1