Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: php-5.4.2
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (32 sloc) 0.412 kB
--TEST--
output buffering - stati
--FILE--
<?php
$stati = array();
function oh($str, $flags) {
global $stati;
$stati[] = "$flags: $str";
return $str;
}
ob_start("oh", 3);
echo "yes";
echo "!\n";
ob_flush();
echo "no";
ob_clean();
echo "yes!\n";
echo "no";
ob_end_clean();
print_r($stati);
?>
--EXPECT--
yes!
yes!
Array
(
[0] => 1: yes
[1] => 4: !
[2] => 2:
[3] => 0: yes!
[4] => 10:
)
Jump to Line
Something went wrong with that request. Please try again.