mirror of
https://github.com/php/php-src.git
synced 2025-01-02 08:54:04 +08: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
23 lines
286 B
PHP
23 lines
286 B
PHP
--TEST--
|
|
output buffering - multiple
|
|
--FILE--
|
|
<?php
|
|
echo 0;
|
|
ob_start();
|
|
ob_start();
|
|
ob_start();
|
|
ob_start();
|
|
echo 1;
|
|
ob_end_flush();
|
|
echo 2;
|
|
$ob = ob_get_clean();
|
|
echo 3;
|
|
ob_flush();
|
|
ob_end_clean();
|
|
echo 4;
|
|
ob_end_flush();
|
|
echo $ob;
|
|
?>
|
|
--EXPECT--
|
|
03412
|