xref: /PHP-8.3/tests/func/006.phpt (revision 42d33c38)
1--TEST--
2Output buffering tests
3--INI--
4output_buffering=0
5output_handler=
6zlib.output_compression=0
7zlib.output_handler=
8--FILE--
9<?php
10ob_start();
11echo ob_get_level();
12echo '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();
19ob_end_clean();
20
21var_dump( $b ); // 2B
22var_dump( $a ); // 1A
23?>
24--EXPECT--
25string(2) "2B"
26string(2) "1A"
27