Lines Matching refs:file
5 // include the file.inc for common test functions
6 include ("file.inc");
19 echo "\n-- Testing fgets() with file opened using mode $file_mode --\n";
29 echo "Error: failed to open file $filename!";
33 echo "-- fgets() with default length, file pointer at 0 --\n";
34 // get the file pointer to beginning of the file
39 var_dump( ftell($file_handle) ); // ensure the file pointer position
42 echo "-- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --\n";
43 // get the file pointer to beginning of the file
48 var_dump( ftell($file_handle) ); // ensure the file pointer position
51 //close file
54 // delete file
64 -- Testing fgets() with file opened using mode w+ --
66 -- fgets() with default length, file pointer at 0 --
71 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
77 -- fgets() with default length, file pointer at 0 --
82 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
88 -- fgets() with default length, file pointer at 0 --
94 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
101 -- fgets() with default length, file pointer at 0 --
106 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
112 -- Testing fgets() with file opened using mode w+b --
114 -- fgets() with default length, file pointer at 0 --
119 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
125 -- fgets() with default length, file pointer at 0 --
130 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
136 -- fgets() with default length, file pointer at 0 --
142 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
149 -- fgets() with default length, file pointer at 0 --
154 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
160 -- Testing fgets() with file opened using mode w+t --
162 -- fgets() with default length, file pointer at 0 --
167 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
173 -- fgets() with default length, file pointer at 0 --
178 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
184 -- fgets() with default length, file pointer at 0 --
190 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
197 -- fgets() with default length, file pointer at 0 --
202 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
208 -- Testing fgets() with file opened using mode a+ --
210 -- fgets() with default length, file pointer at 0 --
215 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
221 -- fgets() with default length, file pointer at 0 --
226 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
232 -- fgets() with default length, file pointer at 0 --
238 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
245 -- fgets() with default length, file pointer at 0 --
250 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
256 -- Testing fgets() with file opened using mode a+b --
258 -- fgets() with default length, file pointer at 0 --
263 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
269 -- fgets() with default length, file pointer at 0 --
274 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
280 -- fgets() with default length, file pointer at 0 --
286 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
293 -- fgets() with default length, file pointer at 0 --
298 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
304 -- Testing fgets() with file opened using mode a+t --
306 -- fgets() with default length, file pointer at 0 --
311 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
317 -- fgets() with default length, file pointer at 0 --
322 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
328 -- fgets() with default length, file pointer at 0 --
334 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
341 -- fgets() with default length, file pointer at 0 --
346 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
352 -- Testing fgets() with file opened using mode x+ --
354 -- fgets() with default length, file pointer at 0 --
359 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
365 -- fgets() with default length, file pointer at 0 --
370 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
376 -- fgets() with default length, file pointer at 0 --
382 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
389 -- fgets() with default length, file pointer at 0 --
394 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
400 -- Testing fgets() with file opened using mode x+b --
402 -- fgets() with default length, file pointer at 0 --
407 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
413 -- fgets() with default length, file pointer at 0 --
418 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
424 -- fgets() with default length, file pointer at 0 --
430 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
437 -- fgets() with default length, file pointer at 0 --
442 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
448 -- Testing fgets() with file opened using mode x+t --
450 -- fgets() with default length, file pointer at 0 --
455 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
461 -- fgets() with default length, file pointer at 0 --
466 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
472 -- fgets() with default length, file pointer at 0 --
478 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
485 -- fgets() with default length, file pointer at 0 --
490 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --