1--TEST--
2Test ob_flush() function : basic functionality
3--FILE--
4<?php
5echo "*** Testing ob_flush() : basic functionality ***\n";
6
7// Zero arguments
8echo "\n-- Testing ob_flush() function with Zero arguments --\n";
9var_dump(ob_flush());
10
11ob_start();
12echo "This should get flushed.\n";
13var_dump(ob_flush());
14
15echo "Ensure the buffer is still active after the flush.\n";
16$out = ob_flush();
17var_dump($out);
18
19echo "Done";
20
21?>
22--EXPECTF--
23*** Testing ob_flush() : basic functionality ***
24
25-- Testing ob_flush() function with Zero arguments --
26
27Notice: ob_flush(): Failed to flush buffer. No buffer to flush in %s on line %d
28bool(false)
29This should get flushed.
30bool(true)
31Ensure the buffer is still active after the flush.
32bool(true)
33Done
34