1--TEST--
2Test ob_get_flush() function : basic functionality
3--INI--
4output_buffering=0
5--FILE--
6<?php
7/* Prototype  : bool ob_get_flush(void)
8 * Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer
9 * Source code: main/output.c
10 * Alias to functions:
11 */
12
13echo "*** Testing ob_get_flush() : basic functionality ***\n";
14
15ob_start();
16
17echo "testing ob_get_flush() with some\nNewlines too\n";
18$string = ob_get_flush();
19
20var_dump( "this is printed before returning the string" );
21var_dump( $string );
22var_dump( ob_list_handlers() );
23
24// Empty string expected
25ob_start();
26$string = ob_get_flush();
27var_dump($string)
28
29?>
30===DONE===
31--EXPECT--
32*** Testing ob_get_flush() : basic functionality ***
33testing ob_get_flush() with some
34Newlines too
35string(43) "this is printed before returning the string"
36string(46) "testing ob_get_flush() with some
37Newlines too
38"
39array(0) {
40}
41string(0) ""
42===DONE===
43