123456789101112131415161718192021222324252627282930313233343536 |
- --TEST--
- output buffering - statuses
- --INI--
- opcache.optimization_level=0
- --FILE--
- <?php
- $statuses = array();
- function oh($str, $flags) {
- global $statuses;
- $statuses[] = "$flags: $str";
- return $str;
- }
- ob_start("oh", 3);
- echo "yes";
- echo "!\n";
- ob_flush();
- echo "no";
- ob_clean();
- echo "yes!\n";
- echo "no";
- ob_end_clean();
- print_r($statuses);
- ?>
- --EXPECT--
- yes!
- yes!
- Array
- (
- [0] => 1: yes
- [1] => 4: !
- [2] => 2: no
- [3] => 0: yes!
- [4] => 10: no
- )
|