dis-bench / src /php /php-src /tests /output /ob_start_basic_003.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
316 Bytes
--TEST--
ob_start(): ensure even fatal error test is affected by output buffering.
--FILE--
<?php
function f() {
return "I have stolen your output";
}
ob_start('f');
cause_fatal_error(); // call undefined function
ob_end_flush();
echo "done (you shouldn't see this)";
?>
--EXPECT--
I have stolen your output