php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35962 output handler 'ob_gzhandler' cannot be used twice
Submitted: 2006-01-10 16:01 UTC Modified: 2006-01-10 16:45 UTC
From: carlos dot esteban at gft dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.1 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: carlos dot esteban at gft dot com
New email:
PHP Version: OS:

 

 [2006-01-10 16:01 UTC] carlos dot esteban at gft dot com
Description:
------------
This bug was reported and fixed in 2002 i think, but in PHP 5.1.1 + Apache 2 i'm getting this message

"Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice"

In many of the pages of PHPNuke framework

I'm sure about the existence of output_handler = and zlib.output_compression = Off directives in the PHP configuration file.

I'm not using CGI, i'm using the DLL for Apache component

Reproduce code:
---------------
For example in the \html\includes\page_header.php file in PHPNuke framework

The lines are as follows
if ( extension_loaded('zlib') )
{
   ob_start('ob_gzhandler');
}


Actual result:
--------------
Warning: ob_start() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in C:\Program Files\Apache Group\Apache2\htdocs\portal\html\includes\page_header.php on line 58


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-10 16:45 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Somewhere in your code or configuration the output handler ob_gzhandler is already being set. The error itself is perfectly correct in this case.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 11:02:27 2025 UTC