Lines Matching refs:fgetc
2 Test fgetc() function : error conditions
6 Prototype: string fgetc ( resource $handle );
12 echo "-- Testing fgetc() with zero argument --\n";
13 var_dump( fgetc() );
16 echo "-- Testing fgetc() with more than expected number of arguments --\n";
18 var_dump( fgetc($fp, $fp) );
22 echo "-- Testing fgetc() with invalid arguments --\n";
31 /* loop to test fgetc() with different invalid type of args */
34 var_dump( fgetc($invalid_args[$loop_counter - 1]) );
40 -- Testing fgetc() with zero argument --
42 Warning: fgetc() expects exactly 1 parameter, 0 given in %s on line %d
44 -- Testing fgetc() with more than expected number of arguments --
46 Warning: fgetc() expects exactly 1 parameter, 2 given in %s on line %d
48 -- Testing fgetc() with invalid arguments --
51 Warning: fgetc() expects parameter 1 to be resource, string given in %s on line %d
55 Warning: fgetc() expects parameter 1 to be resource, integer given in %s on line %d
59 Warning: fgetc() expects parameter 1 to be resource, float given in %s on line %d
63 Warning: fgetc() expects parameter 1 to be resource, boolean given in %s on line %d
67 Warning: fgetc() expects parameter 1 to be resource, array given in %s on line %d
71 Warning: fgetc() expects parameter 1 to be resource, object given in %s on line %d