1--TEST--
2ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush()
3--FILE--
4<?php
5function callback($string) {
6	static $callback_invocations;
7	$callback_invocations++;
8	return "[callback:$callback_invocations]$string\n";
9}
10
11ob_start('callback', 0, false);
12
13echo "Attempt to flush unerasable buffer - should fail... ";
14var_dump(ob_flush());
15// Check content of buffer after flush - if flush failed it should still contain the string above.
16var_dump(ob_get_contents());
17?>
18--EXPECTF--
19[callback:1]Attempt to flush unerasable buffer - should fail...
20Notice: ob_flush(): failed to flush buffer callback in %s on line 11
21bool(false)
22string(%d) "Attempt to flush unerasable buffer - should fail...
23Notice: ob_flush(): failed to flush buffer callback in %s on line 11
24bool(false)
25"
26