mirror of
https://github.com/php/php-src.git
synced 2024-10-06 09:16:11 +00:00
4ce0141713
# scan README.NEW-OUTPUT-API to get a grasp # tree has been tagged with BEFORE_NEW_OUTPUT_API # # TODO: # - improve existing output handlers # - move zlib.output_compression cruft from SAPI.c to zlib.c # - output_encoding handling was ambigious, resp. is undefined yet # - more tests
14 lines
265 B
PHP
14 lines
265 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 %s/ob_011.php on line %d
|