Lines Matching refs:ftruncate
2 Test ftruncate() function : usage variations - truncate file to negative size
12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
30 echo "\n-- Testing ftruncate() with file having data of type ". $file_content_type ." --\n";
33 echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n";
53 echo "-- Testing ftruncate(): try truncating file to a negative size --\n";
59 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
73 *** Testing ftruncate() : usage variations ***
75 -- Testing ftruncate() with file having data of type numeric --
76 -- Testing ftruncate() with file opening using r mode --
77 -- Testing ftruncate(): try truncating file to a negative size --
81 Warning: ftruncate(): Negative size is not supported in %s on line %d
86 -- Testing ftruncate() with file opening using rb mode --
87 -- Testing ftruncate(): try truncating file to a negative size --
91 Warning: ftruncate(): Negative size is not supported in %s on line %d
96 -- Testing ftruncate() with file opening using rt mode --
97 -- Testing ftruncate(): try truncating file to a negative size --
101 Warning: ftruncate(): Negative size is not supported in %s on line %d
106 -- Testing ftruncate() with file opening using r+ mode --
107 -- Testing ftruncate(): try truncating file to a negative size --
111 Warning: ftruncate(): Negative size is not supported in %s on line %d
116 -- Testing ftruncate() with file opening using r+b mode --
117 -- Testing ftruncate(): try truncating file to a negative size --
121 Warning: ftruncate(): Negative size is not supported in %s on line %d
126 -- Testing ftruncate() with file opening using r+t mode --
127 -- Testing ftruncate(): try truncating file to a negative size --
131 Warning: ftruncate(): Negative size is not supported in %s on line %d
136 -- Testing ftruncate() with file opening using w mode --
137 -- Testing ftruncate(): try truncating file to a negative size --
141 Warning: ftruncate(): Negative size is not supported in %s on line %d
146 -- Testing ftruncate() with file opening using wb mode --
147 -- Testing ftruncate(): try truncating file to a negative size --
151 Warning: ftruncate(): Negative size is not supported in %s on line %d
156 -- Testing ftruncate() with file opening using wt mode --
157 -- Testing ftruncate(): try truncating file to a negative size --
161 Warning: ftruncate(): Negative size is not supported in %s on line %d
166 -- Testing ftruncate() with file opening using w+ mode --
167 -- Testing ftruncate(): try truncating file to a negative size --
171 Warning: ftruncate(): Negative size is not supported in %s on line %d
176 -- Testing ftruncate() with file opening using w+b mode --
177 -- Testing ftruncate(): try truncating file to a negative size --
181 Warning: ftruncate(): Negative size is not supported in %s on line %d
186 -- Testing ftruncate() with file opening using w+t mode --
187 -- Testing ftruncate(): try truncating file to a negative size --
191 Warning: ftruncate(): Negative size is not supported in %s on line %d
196 -- Testing ftruncate() with file opening using x mode --
197 -- Testing ftruncate(): try truncating file to a negative size --
201 Warning: ftruncate(): Negative size is not supported in %s on line %d
206 -- Testing ftruncate() with file opening using xb mode --
207 -- Testing ftruncate(): try truncating file to a negative size --
211 Warning: ftruncate(): Negative size is not supported in %s on line %d
216 -- Testing ftruncate() with file opening using xt mode --
217 -- Testing ftruncate(): try truncating file to a negative size --
221 Warning: ftruncate(): Negative size is not supported in %s on line %d
226 -- Testing ftruncate() with file opening using x+ mode --
227 -- Testing ftruncate(): try truncating file to a negative size --
231 Warning: ftruncate(): Negative size is not supported in %s on line %d
236 -- Testing ftruncate() with file opening using x+b mode --
237 -- Testing ftruncate(): try truncating file to a negative size --
241 Warning: ftruncate(): Negative size is not supported in %s on line %d
246 -- Testing ftruncate() with file opening using x+t mode --
247 -- Testing ftruncate(): try truncating file to a negative size --
251 Warning: ftruncate(): Negative size is not supported in %s on line %d
256 -- Testing ftruncate() with file opening using a mode --
257 -- Testing ftruncate(): try truncating file to a negative size --
261 Warning: ftruncate(): Negative size is not supported in %s on line %d
266 -- Testing ftruncate() with file opening using ab mode --
267 -- Testing ftruncate(): try truncating file to a negative size --
271 Warning: ftruncate(): Negative size is not supported in %s on line %d
276 -- Testing ftruncate() with file opening using at mode --
277 -- Testing ftruncate(): try truncating file to a negative size --
281 Warning: ftruncate(): Negative size is not supported in %s on line %d
286 -- Testing ftruncate() with file opening using a+ mode --
287 -- Testing ftruncate(): try truncating file to a negative size --
291 Warning: ftruncate(): Negative size is not supported in %s on line %d
296 -- Testing ftruncate() with file opening using a+b mode --
297 -- Testing ftruncate(): try truncating file to a negative size --
301 Warning: ftruncate(): Negative size is not supported in %s on line %d
306 -- Testing ftruncate() with file opening using a+t mode --
307 -- Testing ftruncate(): try truncating file to a negative size --
311 Warning: ftruncate(): Negative size is not supported in %s on line %d
317 -- Testing ftruncate() with file having data of type text_with_new_line --
318 -- Testing ftruncate() with file opening using r mode --
319 -- Testing ftruncate(): try truncating file to a negative size --
323 Warning: ftruncate(): Negative size is not supported in %s on line %d
328 -- Testing ftruncate() with file opening using rb mode --
329 -- Testing ftruncate(): try truncating file to a negative size --
333 Warning: ftruncate(): Negative size is not supported in %s on line %d
338 -- Testing ftruncate() with file opening using rt mode --
339 -- Testing ftruncate(): try truncating file to a negative size --
343 Warning: ftruncate(): Negative size is not supported in %s on line %d
348 -- Testing ftruncate() with file opening using r+ mode --
349 -- Testing ftruncate(): try truncating file to a negative size --
353 Warning: ftruncate(): Negative size is not supported in %s on line %d
358 -- Testing ftruncate() with file opening using r+b mode --
359 -- Testing ftruncate(): try truncating file to a negative size --
363 Warning: ftruncate(): Negative size is not supported in %s on line %d
368 -- Testing ftruncate() with file opening using r+t mode --
369 -- Testing ftruncate(): try truncating file to a negative size --
373 Warning: ftruncate(): Negative size is not supported in %s on line %d
378 -- Testing ftruncate() with file opening using w mode --
379 -- Testing ftruncate(): try truncating file to a negative size --
383 Warning: ftruncate(): Negative size is not supported in %s on line %d
388 -- Testing ftruncate() with file opening using wb mode --
389 -- Testing ftruncate(): try truncating file to a negative size --
393 Warning: ftruncate(): Negative size is not supported in %s on line %d
398 -- Testing ftruncate() with file opening using wt mode --
399 -- Testing ftruncate(): try truncating file to a negative size --
403 Warning: ftruncate(): Negative size is not supported in %s on line %d
408 -- Testing ftruncate() with file opening using w+ mode --
409 -- Testing ftruncate(): try truncating file to a negative size --
413 Warning: ftruncate(): Negative size is not supported in %s on line %d
418 -- Testing ftruncate() with file opening using w+b mode --
419 -- Testing ftruncate(): try truncating file to a negative size --
423 Warning: ftruncate(): Negative size is not supported in %s on line %d
428 -- Testing ftruncate() with file opening using w+t mode --
429 -- Testing ftruncate(): try truncating file to a negative size --
433 Warning: ftruncate(): Negative size is not supported in %s on line %d
438 -- Testing ftruncate() with file opening using x mode --
439 -- Testing ftruncate(): try truncating file to a negative size --
443 Warning: ftruncate(): Negative size is not supported in %s on line %d
448 -- Testing ftruncate() with file opening using xb mode --
449 -- Testing ftruncate(): try truncating file to a negative size --
453 Warning: ftruncate(): Negative size is not supported in %s on line %d
458 -- Testing ftruncate() with file opening using xt mode --
459 -- Testing ftruncate(): try truncating file to a negative size --
463 Warning: ftruncate(): Negative size is not supported in %s on line %d
468 -- Testing ftruncate() with file opening using x+ mode --
469 -- Testing ftruncate(): try truncating file to a negative size --
473 Warning: ftruncate(): Negative size is not supported in %s on line %d
478 -- Testing ftruncate() with file opening using x+b mode --
479 -- Testing ftruncate(): try truncating file to a negative size --
483 Warning: ftruncate(): Negative size is not supported in %s on line %d
488 -- Testing ftruncate() with file opening using x+t mode --
489 -- Testing ftruncate(): try truncating file to a negative size --
493 Warning: ftruncate(): Negative size is not supported in %s on line %d
498 -- Testing ftruncate() with file opening using a mode --
499 -- Testing ftruncate(): try truncating file to a negative size --
503 Warning: ftruncate(): Negative size is not supported in %s on line %d
508 -- Testing ftruncate() with file opening using ab mode --
509 -- Testing ftruncate(): try truncating file to a negative size --
513 Warning: ftruncate(): Negative size is not supported in %s on line %d
518 -- Testing ftruncate() with file opening using at mode --
519 -- Testing ftruncate(): try truncating file to a negative size --
523 Warning: ftruncate(): Negative size is not supported in %s on line %d
528 -- Testing ftruncate() with file opening using a+ mode --
529 -- Testing ftruncate(): try truncating file to a negative size --
533 Warning: ftruncate(): Negative size is not supported in %s on line %d
538 -- Testing ftruncate() with file opening using a+b mode --
539 -- Testing ftruncate(): try truncating file to a negative size --
543 Warning: ftruncate(): Negative size is not supported in %s on line %d
548 -- Testing ftruncate() with file opening using a+t mode --
549 -- Testing ftruncate(): try truncating file to a negative size --
553 Warning: ftruncate(): Negative size is not supported in %s on line %d