Home
last modified time | relevance | path

Searched refs:truncate (Results 1 – 25 of 33) sorted by relevance

12

/PHP-8.0/ext/standard/tests/file/
H A Dftruncate_variation1-win32-mb.phpt48 /* truncate it to size 0 */
71 -- Testing ftruncate(): truncate file to size = 0 --
79 -- Testing ftruncate(): truncate file to size = 0 --
87 -- Testing ftruncate(): truncate file to size = 0 --
95 -- Testing ftruncate(): truncate file to size = 0 --
103 -- Testing ftruncate(): truncate file to size = 0 --
111 -- Testing ftruncate(): truncate file to size = 0 --
119 -- Testing ftruncate(): truncate file to size = 0 --
127 -- Testing ftruncate(): truncate file to size = 0 --
135 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dftruncate_variation1-win32.phpt48 /* truncate it to size 0 */
71 -- Testing ftruncate(): truncate file to size = 0 --
79 -- Testing ftruncate(): truncate file to size = 0 --
87 -- Testing ftruncate(): truncate file to size = 0 --
95 -- Testing ftruncate(): truncate file to size = 0 --
103 -- Testing ftruncate(): truncate file to size = 0 --
111 -- Testing ftruncate(): truncate file to size = 0 --
119 -- Testing ftruncate(): truncate file to size = 0 --
127 -- Testing ftruncate(): truncate file to size = 0 --
135 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dftruncate_variation1.phpt48 /* truncate it to size 0 */
71 -- Testing ftruncate(): truncate file to size = 0 --
79 -- Testing ftruncate(): truncate file to size = 0 --
87 -- Testing ftruncate(): truncate file to size = 0 --
95 -- Testing ftruncate(): truncate file to size = 0 --
103 -- Testing ftruncate(): truncate file to size = 0 --
111 -- Testing ftruncate(): truncate file to size = 0 --
119 -- Testing ftruncate(): truncate file to size = 0 --
127 -- Testing ftruncate(): truncate file to size = 0 --
135 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dftruncate_variation2-win32.phpt2 Test ftruncate() function : usage variations - truncate file to current size
72 -- Testing ftruncate(): truncate file to size = current size --
80 -- Testing ftruncate(): truncate file to size = current size --
88 -- Testing ftruncate(): truncate file to size = current size --
96 -- Testing ftruncate(): truncate file to size = current size --
104 -- Testing ftruncate(): truncate file to size = current size --
112 -- Testing ftruncate(): truncate file to size = current size --
120 -- Testing ftruncate(): truncate file to size = current size --
128 -- Testing ftruncate(): truncate file to size = current size --
136 -- Testing ftruncate(): truncate file to size = current size --
[all …]
H A Dftruncate_variation2.phpt2 Test ftruncate() function : usage variations - truncate file to current size
72 -- Testing ftruncate(): truncate file to size = current size --
80 -- Testing ftruncate(): truncate file to size = current size --
88 -- Testing ftruncate(): truncate file to size = current size --
96 -- Testing ftruncate(): truncate file to size = current size --
104 -- Testing ftruncate(): truncate file to size = current size --
112 -- Testing ftruncate(): truncate file to size = current size --
120 -- Testing ftruncate(): truncate file to size = current size --
128 -- Testing ftruncate(): truncate file to size = current size --
136 -- Testing ftruncate(): truncate file to size = current size --
[all …]
H A Dftruncate_variation3-win32.phpt2 Test ftruncate() function : usage variations - truncate file to half size
49 /* truncate it to half of its current size */
53 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
71 -- Testing ftruncate(): truncate file to half of its current size --
79 -- Testing ftruncate(): truncate file to half of its current size --
87 -- Testing ftruncate(): truncate file to half of its current size --
95 -- Testing ftruncate(): truncate file to half of its current size --
103 -- Testing ftruncate(): truncate file to half of its current size --
111 -- Testing ftruncate(): truncate file to half of its current size --
119 -- Testing ftruncate(): truncate file to half of its current size --
[all …]
H A Dftruncate_variation3.phpt2 Test ftruncate() function : usage variations - truncate file to half size
49 /* truncate it to half of its current size */
53 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
71 -- Testing ftruncate(): truncate file to half of its current size --
79 -- Testing ftruncate(): truncate file to half of its current size --
87 -- Testing ftruncate(): truncate file to half of its current size --
95 -- Testing ftruncate(): truncate file to half of its current size --
103 -- Testing ftruncate(): truncate file to half of its current size --
111 -- Testing ftruncate(): truncate file to half of its current size --
119 -- Testing ftruncate(): truncate file to half of its current size --
[all …]
H A Dftruncate_variation6-win32.phpt2 Test ftruncate() function : usage variations - truncate file to smaller size
11 /* truncate the file to smaller size and display the content */
51 /* try to truncate it and display the file content */
56 if(ftruncate($file_handle, $new_size) ){// truncate it
77 -- Testing ftruncate(): truncate to smaller size and display the file content --
84 -- Testing ftruncate(): truncate to smaller size and display the file content --
91 -- Testing ftruncate(): truncate to smaller size and display the file content --
98 -- Testing ftruncate(): truncate to smaller size and display the file content --
106 -- Testing ftruncate(): truncate to smaller size and display the file content --
114 -- Testing ftruncate(): truncate to smaller size and display the file content --
[all …]
H A Dftruncate_variation6.phpt2 Test ftruncate() function : usage variations - truncate file to smaller size
11 /* truncate the file to smaller size and display the content */
51 /* try to truncate it and display the file content */
56 if(ftruncate($file_handle, $new_size) ){// truncate it
77 -- Testing ftruncate(): truncate to smaller size and display the file content --
84 -- Testing ftruncate(): truncate to smaller size and display the file content --
91 -- Testing ftruncate(): truncate to smaller size and display the file content --
98 -- Testing ftruncate(): truncate to smaller size and display the file content --
106 -- Testing ftruncate(): truncate to smaller size and display the file content --
114 -- Testing ftruncate(): truncate to smaller size and display the file content --
[all …]
H A Dlstat_stat_variation21.phpt2 Test lstat() and stat() functions: usage variations - effects of truncate()
12 /* test the effects of truncate() on stats of a file */
32 var_dump( ftruncate($file_handle, 512) ); // truncate it
H A Dstat_variation8-win32.phpt2 Test stat() functions: usage variations - effects of truncate()
12 /* test the effects of truncate() on stats of file */
39 var_dump( ftruncate($file_handle, 512) ); // truncate it
H A Dfilesize_variation3.phpt2 Test filesize() function: usage variations - file size after truncate
14 // truncate the file created earlier in subdir, the size of the file is 12000bytes
15 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes,
H A Duserstreams_005.phpt54 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
H A Dftruncate_variation7-win32.phpt2 Test ftruncate() function : usage variations - truncate when file pointer at EOF
11 /* truncate the file when file pointer is positioned at end of the file */
50 /* try to truncate it to while file pointer at the end */
55 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation7.phpt2 Test ftruncate() function : usage variations - truncate when file pointer at EOF
11 /* truncate the file when file pointer is positioned at end of the file */
50 /* try to truncate it to while file pointer at the end */
55 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
H A Dftruncate_variation5-win32.phpt2 Test ftruncate() function : usage variations - truncate file to bigger size
49 /* try to truncate it to size bigger then current */
54 var_dump( ftruncate($file_handle, $new_size) ); // truncate it
/PHP-8.0/ext/oci8/tests/
H A Dlob_042.phpt32 var_dump($blob->truncate(1));
33 var_dump($blob->truncate(1));
34 var_dump($blob->truncate(2));
41 var_dump($blob->truncate(-1));
63 Warning: OCILob::truncate(): Size must be less than or equal to the current LOB size in %s on line …
74 OCILob::truncate(): Argument #1 ($length) must be greater than or equal to 0
H A Dlob_027.phpt49 var_dump($row['BLOB']->truncate(($i-1)*10));
63 var_dump($row['BLOB']->truncate(0));
66 var_dump($row['BLOB']->truncate(-1));
107 OCILob::truncate(): Argument #1 ($length) must be greater than or equal to 0
110 OCILob::truncate(): Argument #1 ($length) must be greater than or equal to 0
H A Dlob_044.phpt25 echo "Test 1 - truncate on insert\n";
35 var_dump($blob->truncate());
61 Test 1 - truncate on insert
H A Dlob_006.phpt2 oci_lob_write()/truncate()/erase()
30 var_dump($blob->truncate());
/PHP-8.0/ext/zlib/tests/
H A Dzlib_wrapper_ftruncate_basic.phpt27 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
29 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
H A Dgzinflate-bug42663.phpt14 // truncate $deflated string
/PHP-8.0/ext/standard/tests/general_functions/
H A D001.phpt8 echo("sprintf string truncate test: ");
57 sprintf string truncate test: passed
/PHP-8.0/ext/spl/tests/
H A Dfileobject_005.phpt2 SPL: SplFileObject truncate tests
H A DSplFileObject_ftruncate_error_001.phpt32 Can't truncate file %s

Completed in 41 milliseconds

12