Lines Matching refs:ftruncate

2 Test ftruncate() function : usage variations - truncate file to smaller size
12 Prototype: bool ftruncate ( resource $handle, int $size );
21 echo "*** Testing ftruncate() : usage variations ***\n";
23 /* test ftruncate with file opened in different modes */
32 echo "\n-- Testing ftruncate() with file having data of type ". $file_content_type ." --\n";
35 echo "-- Testing ftruncate() with file opening using $file_modes[$mode_counter] mode --\n";
55 echo "-- Testing ftruncate(): truncate to smaller size and display the file content --\n";
61 if(ftruncate($file_handle, $new_size) ){// truncate it
78 *** Testing ftruncate() : usage variations ***
80 -- Testing ftruncate() with file having data of type numeric --
81 -- Testing ftruncate() with file opening using r mode --
82 -- Testing ftruncate(): truncate to smaller size and display the file content --
88 -- Testing ftruncate() with file opening using rb mode --
89 -- Testing ftruncate(): truncate to smaller size and display the file content --
95 -- Testing ftruncate() with file opening using rt mode --
96 -- Testing ftruncate(): truncate to smaller size and display the file content --
102 -- Testing ftruncate() with file opening using r+ mode --
103 -- Testing ftruncate(): truncate to smaller size and display the file content --
110 -- Testing ftruncate() with file opening using r+b mode --
111 -- Testing ftruncate(): truncate to smaller size and display the file content --
118 -- Testing ftruncate() with file opening using r+t mode --
119 -- Testing ftruncate(): truncate to smaller size and display the file content --
126 -- Testing ftruncate() with file opening using w mode --
127 -- Testing ftruncate(): truncate to smaller size and display the file content --
134 -- Testing ftruncate() with file opening using wb mode --
135 -- Testing ftruncate(): truncate to smaller size and display the file content --
142 -- Testing ftruncate() with file opening using wt mode --
143 -- Testing ftruncate(): truncate to smaller size and display the file content --
150 -- Testing ftruncate() with file opening using w+ mode --
151 -- Testing ftruncate(): truncate to smaller size and display the file content --
158 -- Testing ftruncate() with file opening using w+b mode --
159 -- Testing ftruncate(): truncate to smaller size and display the file content --
166 -- Testing ftruncate() with file opening using w+t mode --
167 -- Testing ftruncate(): truncate to smaller size and display the file content --
174 -- Testing ftruncate() with file opening using x mode --
175 -- Testing ftruncate(): truncate to smaller size and display the file content --
182 -- Testing ftruncate() with file opening using xb mode --
183 -- Testing ftruncate(): truncate to smaller size and display the file content --
190 -- Testing ftruncate() with file opening using xt mode --
191 -- Testing ftruncate(): truncate to smaller size and display the file content --
198 -- Testing ftruncate() with file opening using x+ mode --
199 -- Testing ftruncate(): truncate to smaller size and display the file content --
206 -- Testing ftruncate() with file opening using x+b mode --
207 -- Testing ftruncate(): truncate to smaller size and display the file content --
214 -- Testing ftruncate() with file opening using x+t mode --
215 -- Testing ftruncate(): truncate to smaller size and display the file content --
222 -- Testing ftruncate() with file opening using a mode --
223 -- Testing ftruncate(): truncate to smaller size and display the file content --
230 -- Testing ftruncate() with file opening using ab mode --
231 -- Testing ftruncate(): truncate to smaller size and display the file content --
238 -- Testing ftruncate() with file opening using at mode --
239 -- Testing ftruncate(): truncate to smaller size and display the file content --
246 -- Testing ftruncate() with file opening using a+ mode --
247 -- Testing ftruncate(): truncate to smaller size and display the file content --
254 -- Testing ftruncate() with file opening using a+b mode --
255 -- Testing ftruncate(): truncate to smaller size and display the file content --
262 -- Testing ftruncate() with file opening using a+t mode --
263 -- Testing ftruncate(): truncate to smaller size and display the file content --
271 -- Testing ftruncate() with file having data of type text_with_new_line --
272 -- Testing ftruncate() with file opening using r mode --
273 -- Testing ftruncate(): truncate to smaller size and display the file content --
279 -- Testing ftruncate() with file opening using rb mode --
280 -- Testing ftruncate(): truncate to smaller size and display the file content --
286 -- Testing ftruncate() with file opening using rt mode --
287 -- Testing ftruncate(): truncate to smaller size and display the file content --
293 -- Testing ftruncate() with file opening using r+ mode --
294 -- Testing ftruncate(): truncate to smaller size and display the file content --
302 -- Testing ftruncate() with file opening using r+b mode --
303 -- Testing ftruncate(): truncate to smaller size and display the file content --
311 -- Testing ftruncate() with file opening using r+t mode --
312 -- Testing ftruncate(): truncate to smaller size and display the file content --
320 -- Testing ftruncate() with file opening using w mode --
321 -- Testing ftruncate(): truncate to smaller size and display the file content --
329 -- Testing ftruncate() with file opening using wb mode --
330 -- Testing ftruncate(): truncate to smaller size and display the file content --
338 -- Testing ftruncate() with file opening using wt mode --
339 -- Testing ftruncate(): truncate to smaller size and display the file content --
347 -- Testing ftruncate() with file opening using w+ mode --
348 -- Testing ftruncate(): truncate to smaller size and display the file content --
356 -- Testing ftruncate() with file opening using w+b mode --
357 -- Testing ftruncate(): truncate to smaller size and display the file content --
365 -- Testing ftruncate() with file opening using w+t mode --
366 -- Testing ftruncate(): truncate to smaller size and display the file content --
374 -- Testing ftruncate() with file opening using x mode --
375 -- Testing ftruncate(): truncate to smaller size and display the file content --
383 -- Testing ftruncate() with file opening using xb mode --
384 -- Testing ftruncate(): truncate to smaller size and display the file content --
392 -- Testing ftruncate() with file opening using xt mode --
393 -- Testing ftruncate(): truncate to smaller size and display the file content --
401 -- Testing ftruncate() with file opening using x+ mode --
402 -- Testing ftruncate(): truncate to smaller size and display the file content --
410 -- Testing ftruncate() with file opening using x+b mode --
411 -- Testing ftruncate(): truncate to smaller size and display the file content --
419 -- Testing ftruncate() with file opening using x+t mode --
420 -- Testing ftruncate(): truncate to smaller size and display the file content --
428 -- Testing ftruncate() with file opening using a mode --
429 -- Testing ftruncate(): truncate to smaller size and display the file content --
437 -- Testing ftruncate() with file opening using ab mode --
438 -- Testing ftruncate(): truncate to smaller size and display the file content --
446 -- Testing ftruncate() with file opening using at mode --
447 -- Testing ftruncate(): truncate to smaller size and display the file content --
455 -- Testing ftruncate() with file opening using a+ mode --
456 -- Testing ftruncate(): truncate to smaller size and display the file content --
464 -- Testing ftruncate() with file opening using a+b mode --
465 -- Testing ftruncate(): truncate to smaller size and display the file content --
473 -- Testing ftruncate() with file opening using a+t mode --
474 -- Testing ftruncate(): truncate to smaller size and display the file content --