Home
last modified time | relevance | path

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

12

/php-src/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 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 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 Duserstreams_005.phpt55 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
H A Dftruncate_variation5.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-src/ext/zlib/tests/
H A Dzlib_wrapper_ftruncate_basic.phpt23 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
25 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
H A Dgzinflate-bug42663.phpt14 // truncate $deflated string
/php-src/ext/standard/tests/general_functions/
H A D001.phpt8 echo("sprintf string truncate test: ");
57 sprintf string truncate test: passed
/php-src/ext/date/tests/
H A Dbug81106.phpt2 Bug #81106: Regression in 8.1: add() now truncate ->f
/php-src/ext/spl/tests/SplFileObject/
H A Dfileobject_005.phpt2 SPL: SplFileObject truncate tests
H A DSplFileObject_ftruncate_error_001.phpt33 Can't truncate file %s
/php-src/Zend/
H A Dzend_smart_str.c193 …I void ZEND_FASTCALL smart_str_append_scalar(smart_str *dest, const zval *value, size_t truncate) { in smart_str_append_scalar() argument
217 smart_str_append_escaped_truncated(dest, Z_STR_P(value), truncate); in smart_str_append_scalar()
H A Dzend_smart_str.h36 …API void ZEND_FASTCALL smart_str_append_scalar(smart_str *str, const zval *value, size_t truncate);

Completed in 57 milliseconds

12