1--TEST--
2Test ob_get_flush() function : error conditions
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() : error conditions ***\n";
14
15// One extra argument
16$extra_arg = 10;
17var_dump( ob_get_flush( $extra_arg ) );
18
19// No ob_start() executed
20var_dump( ob_get_flush() );
21
22?>
23===DONE===
24--EXPECTF--
25*** Testing ob_get_flush() : error conditions ***
26
27Warning: ob_get_flush() expects exactly 0 parameters, 1 given in %s on line %d
28NULL
29
30Notice: ob_get_flush(): failed to delete and flush buffer. No buffer to delete or flush in %s on line %d
31bool(false)
32===DONE===
33