Lines Matching refs:fgets
2 Test fgets() function : basic functionality
12 echo "*** Testing fgets() : basic functionality ***\n";
14 echo "\n-- Testing fgets() with file opened using mode $file_mode --\n";
26 echo "-- fgets() with default length, file pointer at 0 --\n";
27 var_dump( fgets($file_handle) ); // with default length
31 echo "-- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --\n";
33 var_dump( fgets($file_handle, 23) ); // expected: 22 chars
48 *** Testing fgets() : basic functionality ***
50 -- Testing fgets() with file opened using mode r --
52 -- fgets() with default length, file pointer at 0 --
56 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
62 -- fgets() with default length, file pointer at 0 --
66 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
72 -- fgets() with default length, file pointer at 0 --
77 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
84 -- fgets() with default length, file pointer at 0 --
88 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
94 -- Testing fgets() with file opened using mode rb --
96 -- fgets() with default length, file pointer at 0 --
100 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
106 -- fgets() with default length, file pointer at 0 --
110 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
116 -- fgets() with default length, file pointer at 0 --
121 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
128 -- fgets() with default length, file pointer at 0 --
132 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
138 -- Testing fgets() with file opened using mode rt --
140 -- fgets() with default length, file pointer at 0 --
144 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
150 -- fgets() with default length, file pointer at 0 --
154 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
160 -- fgets() with default length, file pointer at 0 --
165 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
172 -- fgets() with default length, file pointer at 0 --
176 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
182 -- Testing fgets() with file opened using mode r+ --
184 -- fgets() with default length, file pointer at 0 --
188 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
194 -- fgets() with default length, file pointer at 0 --
198 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
204 -- fgets() with default length, file pointer at 0 --
209 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
216 -- fgets() with default length, file pointer at 0 --
220 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
226 -- Testing fgets() with file opened using mode r+b --
228 -- fgets() with default length, file pointer at 0 --
232 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
238 -- fgets() with default length, file pointer at 0 --
242 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
248 -- fgets() with default length, file pointer at 0 --
253 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
260 -- fgets() with default length, file pointer at 0 --
264 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
270 -- Testing fgets() with file opened using mode r+t --
272 -- fgets() with default length, file pointer at 0 --
276 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
282 -- fgets() with default length, file pointer at 0 --
286 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
292 -- fgets() with default length, file pointer at 0 --
297 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --
304 -- fgets() with default length, file pointer at 0 --
308 -- fgets() with length = 23, Expected: 22 chars, file pointer at 0 --