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--EXPECT-- 31*** Testing ob_start() : closures as output handlers *** 32Output (1): Output (2): Test 33With newlines 34Test 35With newlines 36Output (2): Test 37With newlines 38