xref: /PHP-5.3/tests/output/ob_017.phpt (revision af49e58f)
1--TEST--
2output buffering - stati
3--FILE--
4<?php
5$stati = array();
6function oh($str, $flags) {
7	global $stati;
8	$stati[] = "$flags: $str";
9	return $str;
10}
11ob_start("oh", 3);
12echo "yes";
13echo "!\n";
14ob_flush();
15echo "no";
16ob_clean();
17echo "yes!\n";
18echo "no";
19ob_end_clean();
20print_r($stati);
21?>
22--EXPECT--
23yes!
24yes!
25Array
26(
27    [0] => 3: yes
28    [1] => 2: !
29
30    [2] => 2: no
31    [3] => 2: yes!
32
33    [4] => 4: no
34)