mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
19 lines
316 B
PHP
19 lines
316 B
PHP
--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
|