--TEST--
Test ob_get_flush() function : error conditions 
--INI--
output_buffering=0
--FILE--
<?php
/* Prototype  : bool ob_get_flush(void)
 * Description: Get current buffer contents, flush (send) the output buffer, and delete current output buffer 
 * Source code: main/output.c
 * Alias to functions: 
 */

echo "*** Testing ob_get_flush() : error conditions ***\n";

// One extra argument
$extra_arg 10;
var_dumpob_get_flush$extra_arg ) );

// No ob_start() executed
var_dumpob_get_flush() );

?>
===DONE===
--EXPECTF--
*** Testing ob_get_flush() : error conditions ***

Warning: ob_get_flush() expects exactly 0 parameters, 1 given in %s on line %d
NULL

Notice: ob_get_flush(): failed to delete and flush buffer. No buffer to delete or flush in %s on line %d
bool(false)
===DONE===
());
var_dump(flock($fp));

/* No.of args greater than expected */
var_dump(flock($fp, "", $var, ""));

echo "\n*** Done ***\n";
?>
--CLEAN--
<?php
$file 
dirname(__FILE__)."/flock.tmp";
unlink($file);
?>
--EXPECTF--    
*** Testing error conditions ***

--- Iteration 0 ---
Warning: flock(): Illegal operation argument in %s on line %d
bool(false)

--- Iteration 1 ---
Warning: flock(): Illegal operation argument in %s on line %d
bool(false)

--- Iteration 2 ---
Warning: flock(): Illegal operation argument in %s on line %d
bool(false)

--- Iteration 3 ---
Warning: flock(): Illegal operation argument in %s on line %d
bool(false)

--- Iteration 4 ---
Warning: flock() expects parameter 2 to be long, array given in %s on line %d
NULL

--- Iteration 5 ---
Warning: flock() expects parameter 2 to be long, array given in %s on line %d
NULL

--- Iteration 6 ---
Warning: flock() expects parameter 2 to be long, string given in %s on line %d
NULL

--- Iteration 7 ---
Warning: flock() expects parameter 2 to be long, string given in %s on line %d
NULL

--- Iteration 8 ---
Warning: flock() expects parameter 2 to be long, string given in %s on line %d
NULL

Warning: flock(): %d is not a valid stream resource in %s on line %d
bool(false)

Warning: flock() expects parameter 1 to be resource, string given in %s on line %d
NULL

Warning: flock() expects at least 2 parameters, 0 given in %s on line %d
NULL

Warning: flock() expects at least 2 parameters, 1 given in %s on line %d
NULL

Warning: flock() expects at most 3 parameters, 4 given in %s on line %d
NULL

*** Done ***