Lines Matching refs:feof
2 Test fopen, fclose() & feof() functions: error conditions
15 Prototype: bool feof ( resource $handle )
20 echo "*** Testing error conditions for fopen(), fclsoe() & feof() ***\n";
34 //feof()
35 var_dump( feof($fp) ); // closed handle
36 var_dump( feof(__FILE__) ); // invalid handle
37 var_dump( feof() ); //zero argument
45 var_dump( feof($fp, "handle"));
49 echo "-- Testing fopen(), fclose() & feof() with invalid arguments --\n";
66 var_dump( feof($invalid_args[$loop_counter - 1]) );
71 *** Testing error conditions for fopen(), fclsoe() & feof() ***
88 Warning: feof(): %d is not a valid stream resource in %s on line %d
91 Warning: feof() expects parameter 1 to be resource, string given in %s on line %d
94 Warning: feof() expects exactly 1 parameter, 0 given in %s on line %d
103 Warning: feof() expects exactly 1 parameter, 2 given in %s on line %d
105 -- Testing fopen(), fclose() & feof() with invalid arguments --
114 Warning: feof() expects parameter 1 to be resource, string given in %s on line %d
124 Warning: feof() expects parameter 1 to be resource, integer given in %s on line %d
134 Warning: feof() expects parameter 1 to be resource, double given in %s on line %d
144 Warning: feof() expects parameter 1 to be resource, boolean given in %s on line %d
154 Warning: feof() expects parameter 1 to be resource, array given in %s on line %d
164 Warning: feof() expects parameter 1 to be resource, object given in %s on line %d
174 Warning: feof() expects parameter 1 to be resource, null given in %s on line %d
184 Warning: feof() expects parameter 1 to be resource, string given in %s on line %d