Lines Matching refs:fgets

2 Test fgets() function : usage variations - read with/without length
14 echo "*** Testing fgets() : usage variations ***\n";
19 echo "\n-- Testing fgets() with file opened using mode $file_mode --\n";
33 echo "-- fgets() with default length, file pointer at 0 --\n";
38 var_dump( fgets($file_handle) ); // with default length
42 echo "-- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --\n";
47 var_dump( fgets($file_handle, 23) ); // expected: 22 chars
62 *** Testing fgets() : usage variations ***
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 --