Lines Matching refs:fflush
2 Test fflush() function: error conditions
6 Prototype: bool fflush ( resource $handle );
14 echo "-- Testing fflush(): with zero argument --\n";
15 var_dump( fflush() );
18 echo "-- Testing fflush(): with more than expected number of arguments --\n";
25 var_dump( fflush($file_handle, $file_handle) );
29 echo "-- Testing fflush(): with invalid arguments --\n";
39 /* loop to test fflush() with different invalid type of args */
42 var_dump( fflush($invalid_args[$loop_counter - 1]) );
55 -- Testing fflush(): with zero argument --
57 Warning: fflush() expects exactly 1 parameter, 0 given in %s on line %d
59 -- Testing fflush(): with more than expected number of arguments --
61 Warning: fflush() expects exactly 1 parameter, 2 given in %s on line %d
63 -- Testing fflush(): with invalid arguments --
66 Warning: fflush() expects parameter 1 to be resource, string given in %s on line %d
70 Warning: fflush() expects parameter 1 to be resource, integer given in %s on line %d
74 Warning: fflush() expects parameter 1 to be resource, double given in %s on line %d
78 Warning: fflush() expects parameter 1 to be resource, boolean given in %s on line %d
82 Warning: fflush() expects parameter 1 to be resource, array given in %s on line %d
86 Warning: fflush() expects parameter 1 to be resource, object given in %s on line %d