Lines Matching refs:fgets
2 Test fgets() function : usage variations - closed handle
6 Prototype: string fgets ( resource $handle [, int $length] );
10 /* try reading a line using fgets() using invalid handles
18 echo "*** Testing fgets() : usage variations ***\n";
20 echo "-- Testing fgets() with closed handle --\n";
27 var_dump( fgets($file_handle) ); // default length
28 var_dump( fgets($file_handle, 10) ); // with specific length
30 echo "-- Testing fgets() with unset handle --\n";
36 //fgets using unset handle
37 var_dump( fgets($file_handle) ); // default length
38 var_dump( fgets($file_handle, 10) ); // with specific length
43 *** Testing fgets() : usage variations ***
44 -- Testing fgets() with closed handle --
46 Warning: fgets(): supplied resource is not a valid stream resource in %s on line %d
49 Warning: fgets(): supplied resource is not a valid stream resource in %s on line %d
51 -- Testing fgets() with unset handle --
55 Warning: fgets() expects parameter 1 to be resource, null given in %s on line %d
60 Warning: fgets() expects parameter 1 to be resource, null given in %s on line %d