1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/tests/output/ob_start_basic_003.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

19 lines
313 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