php-src/tests/output/ob_start_basic_003.phpt

19 lines
316 B
Plaintext
Raw Permalink Normal View History

2008-12-18 15:20:47 +00:00
--TEST--
ob_start(): ensure even fatal error test is affected by output buffering.
--FILE--
<?php
function f() {
2020-02-03 21:52:20 +00:00
return "I have stolen your output";
2008-12-18 15:20:47 +00:00
}
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