1--TEST-- 2Test ob_get_flush() function : basic functionality 3--INI-- 4output_buffering=0 5--FILE-- 6<?php 7echo "*** Testing ob_get_flush() : basic functionality ***\n"; 8 9ob_start(); 10 11echo "testing ob_get_flush() with some\nNewlines too\n"; 12$string = ob_get_flush(); 13 14var_dump( "this is printed before returning the string" ); 15var_dump( $string ); 16var_dump( ob_list_handlers() ); 17 18// Empty string expected 19ob_start(); 20$string = ob_get_flush(); 21var_dump($string) 22 23?> 24--EXPECT-- 25*** Testing ob_get_flush() : basic functionality *** 26testing ob_get_flush() with some 27Newlines too 28string(43) "this is printed before returning the string" 29string(46) "testing ob_get_flush() with some 30Newlines too 31" 32array(0) { 33} 34string(0) "" 35