Lines Matching refs:ftruncate

2 Test ftruncate() function : usage variations - truncate file to negative size
8 echo "*** Testing ftruncate() : usage variations ***\n";
10 /* test ftruncate with file opened in different modes */
19 echo "\n-- Testing ftruncate() with file having data of type ". $file_content_type ." --\n";
22 echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n";
42 echo "-- Testing ftruncate(): try truncating file to a negative size --\n";
50 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
68 *** Testing ftruncate() : usage variations ***
70 -- Testing ftruncate() with file having data of type numeric --
71 -- Testing ftruncate() with file opening using r mode --
72 -- Testing ftruncate(): try truncating file to a negative size --
75 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
79 -- Testing ftruncate() with file opening using rb mode --
80 -- Testing ftruncate(): try truncating file to a negative size --
83 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
87 -- Testing ftruncate() with file opening using rt mode --
88 -- Testing ftruncate(): try truncating file to a negative size --
91 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
95 -- Testing ftruncate() with file opening using r+ mode --
96 -- Testing ftruncate(): try truncating file to a negative size --
99 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
103 -- Testing ftruncate() with file opening using r+b mode --
104 -- Testing ftruncate(): try truncating file to a negative size --
107 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
111 -- Testing ftruncate() with file opening using r+t mode --
112 -- Testing ftruncate(): try truncating file to a negative size --
115 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
119 -- Testing ftruncate() with file opening using w mode --
120 -- Testing ftruncate(): try truncating file to a negative size --
123 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
127 -- Testing ftruncate() with file opening using wb mode --
128 -- Testing ftruncate(): try truncating file to a negative size --
131 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
135 -- Testing ftruncate() with file opening using wt mode --
136 -- Testing ftruncate(): try truncating file to a negative size --
139 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
143 -- Testing ftruncate() with file opening using w+ mode --
144 -- Testing ftruncate(): try truncating file to a negative size --
147 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
151 -- Testing ftruncate() with file opening using w+b mode --
152 -- Testing ftruncate(): try truncating file to a negative size --
155 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
159 -- Testing ftruncate() with file opening using w+t mode --
160 -- Testing ftruncate(): try truncating file to a negative size --
163 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
167 -- Testing ftruncate() with file opening using x mode --
168 -- Testing ftruncate(): try truncating file to a negative size --
171 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
175 -- Testing ftruncate() with file opening using xb mode --
176 -- Testing ftruncate(): try truncating file to a negative size --
179 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
183 -- Testing ftruncate() with file opening using xt mode --
184 -- Testing ftruncate(): try truncating file to a negative size --
187 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
191 -- Testing ftruncate() with file opening using x+ mode --
192 -- Testing ftruncate(): try truncating file to a negative size --
195 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
199 -- Testing ftruncate() with file opening using x+b mode --
200 -- Testing ftruncate(): try truncating file to a negative size --
203 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
207 -- Testing ftruncate() with file opening using x+t mode --
208 -- Testing ftruncate(): try truncating file to a negative size --
211 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
215 -- Testing ftruncate() with file opening using a mode --
216 -- Testing ftruncate(): try truncating file to a negative size --
219 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
223 -- Testing ftruncate() with file opening using ab mode --
224 -- Testing ftruncate(): try truncating file to a negative size --
227 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
231 -- Testing ftruncate() with file opening using at mode --
232 -- Testing ftruncate(): try truncating file to a negative size --
235 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
239 -- Testing ftruncate() with file opening using a+ mode --
240 -- Testing ftruncate(): try truncating file to a negative size --
243 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
247 -- Testing ftruncate() with file opening using a+b mode --
248 -- Testing ftruncate(): try truncating file to a negative size --
251 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
255 -- Testing ftruncate() with file opening using a+t mode --
256 -- Testing ftruncate(): try truncating file to a negative size --
259 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
264 -- Testing ftruncate() with file having data of type text_with_new_line --
265 -- Testing ftruncate() with file opening using r mode --
266 -- Testing ftruncate(): try truncating file to a negative size --
269 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
273 -- Testing ftruncate() with file opening using rb mode --
274 -- Testing ftruncate(): try truncating file to a negative size --
277 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
281 -- Testing ftruncate() with file opening using rt mode --
282 -- Testing ftruncate(): try truncating file to a negative size --
285 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
289 -- Testing ftruncate() with file opening using r+ mode --
290 -- Testing ftruncate(): try truncating file to a negative size --
293 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
297 -- Testing ftruncate() with file opening using r+b mode --
298 -- Testing ftruncate(): try truncating file to a negative size --
301 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
305 -- Testing ftruncate() with file opening using r+t mode --
306 -- Testing ftruncate(): try truncating file to a negative size --
309 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
313 -- Testing ftruncate() with file opening using w mode --
314 -- Testing ftruncate(): try truncating file to a negative size --
317 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
321 -- Testing ftruncate() with file opening using wb mode --
322 -- Testing ftruncate(): try truncating file to a negative size --
325 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
329 -- Testing ftruncate() with file opening using wt mode --
330 -- Testing ftruncate(): try truncating file to a negative size --
333 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
337 -- Testing ftruncate() with file opening using w+ mode --
338 -- Testing ftruncate(): try truncating file to a negative size --
341 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
345 -- Testing ftruncate() with file opening using w+b mode --
346 -- Testing ftruncate(): try truncating file to a negative size --
349 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
353 -- Testing ftruncate() with file opening using w+t mode --
354 -- Testing ftruncate(): try truncating file to a negative size --
357 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
361 -- Testing ftruncate() with file opening using x mode --
362 -- Testing ftruncate(): try truncating file to a negative size --
365 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
369 -- Testing ftruncate() with file opening using xb mode --
370 -- Testing ftruncate(): try truncating file to a negative size --
373 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
377 -- Testing ftruncate() with file opening using xt mode --
378 -- Testing ftruncate(): try truncating file to a negative size --
381 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
385 -- Testing ftruncate() with file opening using x+ mode --
386 -- Testing ftruncate(): try truncating file to a negative size --
389 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
393 -- Testing ftruncate() with file opening using x+b mode --
394 -- Testing ftruncate(): try truncating file to a negative size --
397 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
401 -- Testing ftruncate() with file opening using x+t mode --
402 -- Testing ftruncate(): try truncating file to a negative size --
405 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
409 -- Testing ftruncate() with file opening using a mode --
410 -- Testing ftruncate(): try truncating file to a negative size --
413 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
417 -- Testing ftruncate() with file opening using ab mode --
418 -- Testing ftruncate(): try truncating file to a negative size --
421 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
425 -- Testing ftruncate() with file opening using at mode --
426 -- Testing ftruncate(): try truncating file to a negative size --
429 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
433 -- Testing ftruncate() with file opening using a+ mode --
434 -- Testing ftruncate(): try truncating file to a negative size --
437 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
441 -- Testing ftruncate() with file opening using a+b mode --
442 -- Testing ftruncate(): try truncating file to a negative size --
445 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
449 -- Testing ftruncate() with file opening using a+t mode --
450 -- Testing ftruncate(): try truncating file to a negative size --
453 ftruncate(): Argument #2 ($size) must be greater than or equal to 0