Annotation of embedaddon/php/tests/output/ob_013.phpt, revision 1.1.1.3
1.1 misho 1: --TEST--
2: output buffering - handlers/status
3: --FILE--
4: <?php
5: function a($s){return $s;}
6: function b($s){return $s;}
7: function c($s){return $s;}
8: function d($s){return $s;}
9:
10: ob_start();
11: ob_start('a');
12: ob_start('b');
13: ob_start('c');
14: ob_start('d');
15: ob_start();
16:
17: echo "foo\n";
18:
19: ob_flush();
20: ob_end_clean();
21: ob_flush();
22:
23: print_r(ob_list_handlers());
24: print_r(ob_get_status());
25: print_r(ob_get_status(true));
26:
27: ?>
28: --EXPECTF--
29: foo
30: Array
31: (
32: [0] => default output handler
33: [1] => a
34: [2] => b
35: [3] => c
36: [4] => d
37: )
38: Array
39: (
40: [name] => d
1.1.1.2 misho 41: [type] => 1
1.1.1.3 ! misho 42: [flags] => 20593
1.1.1.2 misho 43: [level] => 4
44: [chunk_size] => %d
45: [buffer_size] => 16384
46: [buffer_used] => 96
1.1 misho 47: )
48: Array
49: (
50: [0] => Array
51: (
52: [name] => default output handler
1.1.1.2 misho 53: [type] => 0
54: [flags] => 112
55: [level] => 0
56: [chunk_size] => %d
57: [buffer_size] => 16384
58: [buffer_used] => 0
1.1 misho 59: )
60:
61: [1] => Array
62: (
63: [name] => a
1.1.1.2 misho 64: [type] => 1
65: [flags] => 113
66: [level] => 1
67: [chunk_size] => %d
68: [buffer_size] => 16384
69: [buffer_used] => 0
1.1 misho 70: )
71:
72: [2] => Array
73: (
74: [name] => b
1.1.1.2 misho 75: [type] => 1
76: [flags] => 113
77: [level] => 2
78: [chunk_size] => %d
79: [buffer_size] => 16384
80: [buffer_used] => 0
1.1 misho 81: )
82:
83: [3] => Array
84: (
85: [name] => c
1.1.1.2 misho 86: [type] => 1
87: [flags] => 113
88: [level] => 3
89: [chunk_size] => %d
90: [buffer_size] => 16384
91: [buffer_used] => 4
1.1 misho 92: )
93:
94: [4] => Array
95: (
96: [name] => d
1.1.1.2 misho 97: [type] => 1
1.1.1.3 ! misho 98: [flags] => 20593
1.1.1.2 misho 99: [level] => 4
100: [chunk_size] => %d
101: [buffer_size] => 16384
102: [buffer_used] => %d
1.1 misho 103: )
104:
1.1.1.2 misho 105: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>