1--TEST-- 2Test ob_start() function : closures as output handlers 3--INI-- 4output_buffering=0 5--FILE-- 6<?php 7echo "*** Testing ob_start() : closures as output handlers ***\n"; 8 9ob_start(function ($output) { 10 return 'Output (1): ' . $output; 11}); 12 13ob_start(function ($output) { 14 return 'Output (2): ' . $output; 15}); 16 17echo "Test\nWith newlines\n"; 18 19$str1 = ob_get_contents (); 20 21ob_end_flush(); 22 23$str2 = ob_get_contents (); 24 25ob_end_flush(); 26 27echo $str1, $str2; 28 29?> 30===DONE=== 31--EXPECT-- 32*** Testing ob_start() : closures as output handlers *** 33Output (1): Output (2): Test 34With newlines 35Test 36With newlines 37Output (2): Test 38With newlines 39===DONE=== 40