Lines Matching refs:ftruncate
2 Test ftruncate() function : usage variations - truncate file to half 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(): truncate file to half of its current size --\n";
58 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
72 *** Testing ftruncate() : usage variations ***
74 -- Testing ftruncate() with file having data of type numeric --
75 -- Testing ftruncate() with file opening using r mode --
76 -- Testing ftruncate(): truncate file to half of its current size --
83 -- Testing ftruncate() with file opening using rb mode --
84 -- Testing ftruncate(): truncate file to half of its current size --
91 -- Testing ftruncate() with file opening using rt mode --
92 -- Testing ftruncate(): truncate file to half of its current size --
99 -- Testing ftruncate() with file opening using r+ mode --
100 -- Testing ftruncate(): truncate file to half of its current size --
107 -- Testing ftruncate() with file opening using r+b mode --
108 -- Testing ftruncate(): truncate file to half of its current size --
115 -- Testing ftruncate() with file opening using r+t mode --
116 -- Testing ftruncate(): truncate file to half of its current size --
123 -- Testing ftruncate() with file opening using w mode --
124 -- Testing ftruncate(): truncate file to half of its current size --
131 -- Testing ftruncate() with file opening using wb mode --
132 -- Testing ftruncate(): truncate file to half of its current size --
139 -- Testing ftruncate() with file opening using wt mode --
140 -- Testing ftruncate(): truncate file to half of its current size --
147 -- Testing ftruncate() with file opening using w+ mode --
148 -- Testing ftruncate(): truncate file to half of its current size --
155 -- Testing ftruncate() with file opening using w+b mode --
156 -- Testing ftruncate(): truncate file to half of its current size --
163 -- Testing ftruncate() with file opening using w+t mode --
164 -- Testing ftruncate(): truncate file to half of its current size --
171 -- Testing ftruncate() with file opening using x mode --
172 -- Testing ftruncate(): truncate file to half of its current size --
179 -- Testing ftruncate() with file opening using xb mode --
180 -- Testing ftruncate(): truncate file to half of its current size --
187 -- Testing ftruncate() with file opening using xt mode --
188 -- Testing ftruncate(): truncate file to half of its current size --
195 -- Testing ftruncate() with file opening using x+ mode --
196 -- Testing ftruncate(): truncate file to half of its current size --
203 -- Testing ftruncate() with file opening using x+b mode --
204 -- Testing ftruncate(): truncate file to half of its current size --
211 -- Testing ftruncate() with file opening using x+t mode --
212 -- Testing ftruncate(): truncate file to half of its current size --
219 -- Testing ftruncate() with file opening using a mode --
220 -- Testing ftruncate(): truncate file to half of its current size --
227 -- Testing ftruncate() with file opening using ab mode --
228 -- Testing ftruncate(): truncate file to half of its current size --
235 -- Testing ftruncate() with file opening using at mode --
236 -- Testing ftruncate(): truncate file to half of its current size --
243 -- Testing ftruncate() with file opening using a+ mode --
244 -- Testing ftruncate(): truncate file to half of its current size --
251 -- Testing ftruncate() with file opening using a+b mode --
252 -- Testing ftruncate(): truncate file to half of its current size --
259 -- Testing ftruncate() with file opening using a+t mode --
260 -- Testing ftruncate(): truncate file to half of its current size --
268 -- Testing ftruncate() with file having data of type text_with_new_line --
269 -- Testing ftruncate() with file opening using r mode --
270 -- Testing ftruncate(): truncate file to half of its current size --
277 -- Testing ftruncate() with file opening using rb mode --
278 -- Testing ftruncate(): truncate file to half of its current size --
285 -- Testing ftruncate() with file opening using rt mode --
286 -- Testing ftruncate(): truncate file to half of its current size --
293 -- Testing ftruncate() with file opening using r+ mode --
294 -- Testing ftruncate(): truncate file to half of its current size --
301 -- Testing ftruncate() with file opening using r+b mode --
302 -- Testing ftruncate(): truncate file to half of its current size --
309 -- Testing ftruncate() with file opening using r+t mode --
310 -- Testing ftruncate(): truncate file to half of its current size --
317 -- Testing ftruncate() with file opening using w mode --
318 -- Testing ftruncate(): truncate file to half of its current size --
325 -- Testing ftruncate() with file opening using wb mode --
326 -- Testing ftruncate(): truncate file to half of its current size --
333 -- Testing ftruncate() with file opening using wt mode --
334 -- Testing ftruncate(): truncate file to half of its current size --
341 -- Testing ftruncate() with file opening using w+ mode --
342 -- Testing ftruncate(): truncate file to half of its current size --
349 -- Testing ftruncate() with file opening using w+b mode --
350 -- Testing ftruncate(): truncate file to half of its current size --
357 -- Testing ftruncate() with file opening using w+t mode --
358 -- Testing ftruncate(): truncate file to half of its current size --
365 -- Testing ftruncate() with file opening using x mode --
366 -- Testing ftruncate(): truncate file to half of its current size --
373 -- Testing ftruncate() with file opening using xb mode --
374 -- Testing ftruncate(): truncate file to half of its current size --
381 -- Testing ftruncate() with file opening using xt mode --
382 -- Testing ftruncate(): truncate file to half of its current size --
389 -- Testing ftruncate() with file opening using x+ mode --
390 -- Testing ftruncate(): truncate file to half of its current size --
397 -- Testing ftruncate() with file opening using x+b mode --
398 -- Testing ftruncate(): truncate file to half of its current size --
405 -- Testing ftruncate() with file opening using x+t mode --
406 -- Testing ftruncate(): truncate file to half of its current size --
413 -- Testing ftruncate() with file opening using a mode --
414 -- Testing ftruncate(): truncate file to half of its current size --
421 -- Testing ftruncate() with file opening using ab mode --
422 -- Testing ftruncate(): truncate file to half of its current size --
429 -- Testing ftruncate() with file opening using at mode --
430 -- Testing ftruncate(): truncate file to half of its current size --
437 -- Testing ftruncate() with file opening using a+ mode --
438 -- Testing ftruncate(): truncate file to half of its current size --
445 -- Testing ftruncate() with file opening using a+b mode --
446 -- Testing ftruncate(): truncate file to half of its current size --
453 -- Testing ftruncate() with file opening using a+t mode --
454 -- Testing ftruncate(): truncate file to half of its current size --