Annotation of embedaddon/php/tests/output/ob_013.phpt, revision 1.1
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: [level] => 5
! 41: [type] => 1
! 42: [status] => 1
! 43: [name] => d
! 44: [del] => 1
! 45: )
! 46: Array
! 47: (
! 48: [0] => Array
! 49: (
! 50: [chunk_size] => 0
! 51: [size] => 40960
! 52: [block_size] => 10240
! 53: [type] => 1
! 54: [status] => 0
! 55: [name] => default output handler
! 56: [del] => 1
! 57: )
! 58:
! 59: [1] => Array
! 60: (
! 61: [chunk_size] => 0
! 62: [size] => 40960
! 63: [block_size] => 10240
! 64: [type] => 1
! 65: [status] => 0
! 66: [name] => a
! 67: [del] => 1
! 68: )
! 69:
! 70: [2] => Array
! 71: (
! 72: [chunk_size] => 0
! 73: [size] => 40960
! 74: [block_size] => 10240
! 75: [type] => 1
! 76: [status] => 0
! 77: [name] => b
! 78: [del] => 1
! 79: )
! 80:
! 81: [3] => Array
! 82: (
! 83: [chunk_size] => 0
! 84: [size] => 40960
! 85: [block_size] => 10240
! 86: [type] => 1
! 87: [status] => 0
! 88: [name] => c
! 89: [del] => 1
! 90: )
! 91:
! 92: [4] => Array
! 93: (
! 94: [chunk_size] => 0
! 95: [size] => 40960
! 96: [block_size] => 10240
! 97: [type] => 1
! 98: [status] => 1
! 99: [name] => d
! 100: [del] => 1
! 101: )
! 102:
! 103: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>