|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18420 ob_gzhandler returns nothing
Submitted: 2002-07-18 15:27 UTC Modified: 2010-12-20 11:44 UTC
From: yves at unclassified dot de Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.1.2 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: yves at unclassified dot de
New email:
PHP Version: OS:


 [2002-07-18 15:27 UTC] yves at unclassified dot 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:

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)



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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-18 18:02 UTC]
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

Thank you for your interest in PHP.

 [2010-12-20 11:44 UTC]
-Package: Tidy +Package: Output Control
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 12:01:30 2024 UTC