#43088 [Opn->Bgs]: ob_gzhandler broken.

From: Date: Thu, 25 Oct 2007 12:24:19 +0000
Subject: #43088 [Opn->Bgs]: ob_gzhandler broken.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118934@lists.php.net to get a copy of this message
ID: 43088 Updated by: jani@php.net Reported By: radamantis at gmail dot com -Status: Open +Status: Bogus Bug Type: Output Control Operating System: Windows XP SP2 PHP Version: 5.2.4 New Comment: See bug #37714 Previous Comments: ------------------------------------------------------------------------ [2007-10-23 18:57:32] radamantis at gmail dot com Description: ------------ Apache2 module. PHP-recommended.ini / default output_handler = zlib.output_compression = Off ob_start('ob_gzhandler') doesn't work as expected. The same if wrapped into a function. Reproduce code: --------------- #1 ob_start('ob_gzhandler'); echo "Something"; ob_end_flush(); echo "Hello World"; // Call undefined function call_some_user_function(); #2 function compress_data($output) { return ob_gzhandler($output); } ob_start('compress_data'); echo "Something<br/>"; ob_end_flush(); echo "Hello World"; // Call undefined function. call_some_user_function(); Expected result: ---------------- #1 Something Hello World Fatal error: Call to undefined function call_some_user_function() in some_file.php........ #2 Something Hello World Fatal error: Call to undefined function call_some_user_function() in some_file.php........ Actual result: -------------- #1 Something Nothing happens, no fatal error at all, in fact, looks like there's no more processing from that point on. #2 Hello World Fatal error: Call to undefined function call_some_user_function() in some_file.php........ Where's the buffer? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43088&edit=1

« previous php.bugs (#118934) next »