|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-12-16 15:44 UTC] busia at tiscali dot it
Sometimes (it seems random) I find in the error_log this fatal error: PHP Warning: (null)() [<a href='http://www.php.net/ref.outcontrol'>ref.outcontr ol</a>]: output handler 'ob_gzhandler' cannot be used twice in Unknown on line 0 Repeated 4 times. I haven't activated gz_handler in php.ini and it's not activated in virtaulhosts, I don't set in scripts. I'm not using it, why it tells me that I use it TWICE? Andrea Busia PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 19:00:01 2025 UTC |
The same message appears if I place <?php ob_start('ob_gzhandler'); ?> in the begining of the any php script. (W2kPro SP2, PHP4.3.0RC2, Apache 2.0.43)To both of you: please execute the following script: <?php $a=array(); function get($n) { global $a; $a[$n] = ini_get($n); } get('output_buffering'); get('output_handler'); get('zlib.output_compression'); get('zlib.output_handler'); var_dump($a); ?>Now I have 4.4.0-dev (200301041230) and the problem seems to be corrected, I don't see anymore this warning in logs. BTW this is the output: ------------------------ array(4) { ["output_buffering"]=> string(1) "1" ["output_handler"]=> bool(false) ["zlib.output_compression"]=> string(0) "" ["zlib.output_handler"]=> string(0) "" } ------------------------