mirror of
https://github.com/php/php-src.git
synced 2025-01-02 08:54:04 +08:00
4a7e83f54a
of course we can try to refactor the current flow to make this error can be catched safly. but as 7.0.0 is releasing, I don't think a refactor is safe now. and actually I don't see any gain to make this catchable. so let's keep this be consistent with 5.6 and safe for now
14 lines
264 B
PHP
14 lines
264 B
PHP
--TEST--
|
|
output buffering - fatalism
|
|
--FILE--
|
|
<?php
|
|
function obh($s)
|
|
{
|
|
return ob_get_flush();
|
|
}
|
|
ob_start("obh");
|
|
echo "foo\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: ob_get_flush(): Cannot use output buffering in output buffering display handlers in %sob_011.php on line %d
|