Annotation of embedaddon/php/tests/func/006.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Output buffering tests
! 3: --INI--
! 4: output_buffering=0
! 5: output_handler=
! 6: zlib.output_compression=0
! 7: zlib.output_handler=
! 8: --FILE--
! 9: <?php
! 10: ob_start();
! 11: echo ob_get_level();
! 12: echo 'A';
! 13: ob_start();
! 14: echo ob_get_level();
! 15: echo 'B';
! 16: $b = ob_get_contents();
! 17: ob_end_clean();
! 18: $a = ob_get_contents();
! 19: ob_end_clean();
! 20:
! 21: var_dump( $b ); // 2B
! 22: var_dump( $a ); // 1A
! 23: ?>
! 24: --EXPECT--
! 25: string(2) "2B"
! 26: string(2) "1A"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>