Lines Matching refs:fclose
2 Test fopen, fclose() & feof() functions: error conditions
12 Prototype: bool fclose ( resource $handle );
27 // fclose()
29 fclose($fp);
30 var_dump( fclose($fp) ); // closed handle
31 var_dump( fclose(__FILE__) ); // invalid handle
32 var_dump( fclose() ); // zero argument
43 var_dump( fclose($fp, "handle") );
46 fclose($fp);
49 echo "-- Testing fopen(), fclose() & feof() with invalid arguments --\n";
61 /* loop to test fclose with different invalid type of args */
65 var_dump( fclose($invalid_args[$loop_counter - 1]) );
79 Warning: fclose(): supplied resource is not a valid stream resource in %s on line %d
82 Warning: fclose() expects parameter 1 to be resource, string given in %s on line %d
85 Warning: fclose() expects exactly 1 parameter, 0 given in %s on line %d
100 Warning: fclose() expects exactly 1 parameter, 2 given in %s on line %d
105 -- Testing fopen(), fclose() & feof() with invalid arguments --
111 Warning: fclose() expects parameter 1 to be resource, string given in %s on line %d
121 Warning: fclose() expects parameter 1 to be resource, integer given in %s on line %d
131 Warning: fclose() expects parameter 1 to be resource, float given in %s on line %d
141 Warning: fclose() expects parameter 1 to be resource, boolean given in %s on line %d
151 Warning: fclose() expects parameter 1 to be resource, array given in %s on line %d
161 Warning: fclose() expects parameter 1 to be resource, object given in %s on line %d
171 Warning: fclose() expects parameter 1 to be resource, null given in %s on line %d
181 Warning: fclose() expects parameter 1 to be resource, string given in %s on line %d