Lines Matching refs:rewind
2 Test fseek(), ftell() & rewind() functions : error conditions - rewind()
9 Prototype: bool rewind ( resource $handle );
16 echo "*** Testing rewind() : error conditions ***\n";
18 echo "-- Testing rewind() with zero argument --\n";
19 var_dump( rewind() );
22 echo "-- Testing rewind() with more than expected number of arguments --\n";
24 var_dump( rewind($fp, 10) );
27 echo "-- Testing rewind() with invalid arguments --\n";
36 /* loop to test rewind with different invalid type of args */
39 var_dump( rewind($invalid_args[$loop_counter - 1]) );
42 // rewind on a file handle which is already closed
43 echo "-- Testing rewind() with closed/unset file handle --";
45 var_dump(rewind($fp));
47 // rewind on a file handle which is unset
50 var_dump( rewind(@$file_handle) );
55 *** Testing rewind() : error conditions ***
56 -- Testing rewind() with zero argument --
58 Warning: rewind() expects exactly 1 parameter, 0 given in %s on line %d
60 -- Testing rewind() with more than expected number of arguments --
62 Warning: rewind() expects exactly 1 parameter, 2 given in %s on line %d
64 -- Testing rewind() with invalid arguments --
67 Warning: rewind() expects parameter 1 to be resource, string given in %s on line %d
71 Warning: rewind() expects parameter 1 to be resource, integer given in %s on line %d
75 Warning: rewind() expects parameter 1 to be resource, float given in %s on line %d
79 Warning: rewind() expects parameter 1 to be resource, boolean given in %s on line %d
83 Warning: rewind() expects parameter 1 to be resource, array given in %s on line %d
87 Warning: rewind() expects parameter 1 to be resource, object given in %s on line %d
89 -- Testing rewind() with closed/unset file handle --
90 Warning: rewind(): supplied resource is not a valid stream resource in %s on line %d
93 Warning: rewind() expects parameter 1 to be resource, null given in %s on line %d