Home
last modified time | relevance | path

Searched refs:ftruncate (Results 1 – 25 of 48) sorted by relevance

12

/PHP-8.2/ext/standard/tests/file/
H A Dftruncate_variation7-win32.phpt15 echo "*** Testing ftruncate() : usage variations ***\n";
17 /* test ftruncate with file opened in different modes */
69 *** Testing ftruncate() : usage variations ***
73 -- Testing ftruncate(): File pointer at the end --
81 -- Testing ftruncate(): File pointer at the end --
89 -- Testing ftruncate(): File pointer at the end --
97 -- Testing ftruncate(): File pointer at the end --
105 -- Testing ftruncate(): File pointer at the end --
113 -- Testing ftruncate(): File pointer at the end --
121 -- Testing ftruncate(): File pointer at the end --
[all …]
H A Dftruncate_variation1-win32-mb.phpt14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
67 *** Testing ftruncate() : usage variations ***
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 --
[all …]
H A Dftruncate_variation1-win32.phpt14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
67 *** Testing ftruncate() : usage variations ***
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 --
[all …]
H A Dftruncate_variation1.phpt14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
67 *** Testing ftruncate() : usage variations ***
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 --
[all …]
H A Dftruncate_variation7.phpt15 echo "*** Testing ftruncate() : usage variations ***\n";
17 /* test ftruncate with file opened in different modes */
69 *** Testing ftruncate() : usage variations ***
73 -- Testing ftruncate(): File pointer at the end --
81 -- Testing ftruncate(): File pointer at the end --
89 -- Testing ftruncate(): File pointer at the end --
97 -- Testing ftruncate(): File pointer at the end --
105 -- Testing ftruncate(): File pointer at the end --
113 -- Testing ftruncate(): File pointer at the end --
121 -- Testing ftruncate(): File pointer at the end --
[all …]
H A Dftruncate_variation4.phpt8 echo "*** Testing ftruncate() : usage variations ***\n";
10 /* test ftruncate with file opened in different modes */
68 *** Testing ftruncate() : usage variations ***
71 -- Testing ftruncate() with file opening using r mode --
79 -- Testing ftruncate() with file opening using rb mode --
87 -- Testing ftruncate() with file opening using rt mode --
95 -- Testing ftruncate() with file opening using r+ mode --
119 -- Testing ftruncate() with file opening using w mode --
127 -- Testing ftruncate() with file opening using wb mode --
167 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation3.phpt2 Test ftruncate() function : usage variations - truncate file to half size
14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
67 *** Testing ftruncate() : usage variations ***
70 -- Testing ftruncate() with file opening using r mode --
78 -- Testing ftruncate() with file opening using rb mode --
86 -- Testing ftruncate() with file opening using rt mode --
94 -- Testing ftruncate() with file opening using r+ mode --
118 -- Testing ftruncate() with file opening using w mode --
166 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation5-win32.phpt14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
69 *** Testing ftruncate() : usage variations ***
72 -- Testing ftruncate() with file opening using r mode --
80 -- Testing ftruncate() with file opening using rb mode --
88 -- Testing ftruncate() with file opening using rt mode --
96 -- Testing ftruncate() with file opening using r+ mode --
120 -- Testing ftruncate() with file opening using w mode --
128 -- Testing ftruncate() with file opening using wb mode --
168 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation5.phpt14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
69 *** Testing ftruncate() : usage variations ***
72 -- Testing ftruncate() with file opening using r mode --
80 -- Testing ftruncate() with file opening using rb mode --
88 -- Testing ftruncate() with file opening using rt mode --
96 -- Testing ftruncate() with file opening using r+ mode --
120 -- Testing ftruncate() with file opening using w mode --
128 -- Testing ftruncate() with file opening using wb mode --
168 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation2-win32.phpt14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
68 *** Testing ftruncate() : usage variations ***
71 -- Testing ftruncate() with file opening using r mode --
79 -- Testing ftruncate() with file opening using rb mode --
87 -- Testing ftruncate() with file opening using rt mode --
95 -- Testing ftruncate() with file opening using r+ mode --
119 -- Testing ftruncate() with file opening using w mode --
127 -- Testing ftruncate() with file opening using wb mode --
167 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation2.phpt14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
68 *** Testing ftruncate() : usage variations ***
71 -- Testing ftruncate() with file opening using r mode --
79 -- Testing ftruncate() with file opening using rb mode --
87 -- Testing ftruncate() with file opening using rt mode --
95 -- Testing ftruncate() with file opening using r+ mode --
119 -- Testing ftruncate() with file opening using w mode --
127 -- Testing ftruncate() with file opening using wb mode --
167 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation3-win32.phpt2 Test ftruncate() function : usage variations - truncate file to half size
14 echo "*** Testing ftruncate() : usage variations ***\n";
16 /* test ftruncate with file opened in different modes */
67 *** Testing ftruncate() : usage variations ***
70 -- Testing ftruncate() with file opening using r mode --
78 -- Testing ftruncate() with file opening using rb mode --
86 -- Testing ftruncate() with file opening using rt mode --
94 -- Testing ftruncate() with file opening using r+ mode --
118 -- Testing ftruncate() with file opening using w mode --
166 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation6-win32.phpt16 echo "*** Testing ftruncate() : usage variations ***\n";
18 /* test ftruncate with file opened in different modes */
56 if(ftruncate($file_handle, $new_size) ){// truncate it
73 *** Testing ftruncate() : usage variations ***
76 -- Testing ftruncate() with file opening using r mode --
83 -- Testing ftruncate() with file opening using rb mode --
90 -- Testing ftruncate() with file opening using rt mode --
97 -- Testing ftruncate() with file opening using r+ mode --
121 -- Testing ftruncate() with file opening using w mode --
129 -- Testing ftruncate() with file opening using wb mode --
[all …]
H A Dftruncate_variation6.phpt16 echo "*** Testing ftruncate() : usage variations ***\n";
18 /* test ftruncate with file opened in different modes */
56 if(ftruncate($file_handle, $new_size) ){// truncate it
73 *** Testing ftruncate() : usage variations ***
76 -- Testing ftruncate() with file opening using r mode --
83 -- Testing ftruncate() with file opening using rb mode --
90 -- Testing ftruncate() with file opening using rt mode --
97 -- Testing ftruncate() with file opening using r+ mode --
121 -- Testing ftruncate() with file opening using w mode --
129 -- Testing ftruncate() with file opening using wb mode --
[all …]
H A Dftruncate_error.phpt2 Test ftruncate() function : error conditions
5 echo "*** Testing ftruncate() : error conditions ***\n";
9 fwrite($file_handle, "Testing ftruncate error conditions \n");
13 // ftruncate() on a file handle which is already closed/unset
14 echo "-- Testing ftruncate() with closed/unset file handle --\n";
16 // ftruncate on close file handle
19 var_dump( ftruncate($file_handle,10) );
34 *** Testing ftruncate() : error conditions ***
37 -- Testing ftruncate() with closed/unset file handle --
38 ftruncate(): supplied resource is not a valid stream resource
H A Dftruncate.phpt2 ftruncate() tests
6 $filename = __DIR__."/ftruncate.dat";
11 var_dump(ftruncate($fp, 10));
16 var_dump(ftruncate($fp, 10));
23 var_dump(ftruncate($fp, 10));
28 var_dump(ftruncate($fp, 0));
36 var_dump(ftruncate($fp, -1000000000));
55 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
H A Dbug71882.phpt2 Bug #71882 (Negative ftruncate() on php://memory exhausts memory)
7 var_dump(ftruncate($fd, -1));
13 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
H A Dftruncate_bug76803.phpt2 Bug #76803 ftruncate changes file pointer
10 ftruncate($f, 2);
17 ftruncate($f, 2);
23 ftruncate($f, 2); // in 7.3 changes file pointer to 2
H A Dftruncate_bug76422.phpt2 Bug #76422 ftruncate fails on files > 2GB
24 /* Check if ftruncate() with 2GB works. If it doesn't, it's likely that large files are
27 $ftruncate_result = ftruncate($file_handle, $truncate_offset);
36 $ftruncate_result = ftruncate($file_handle, $truncate_offset);
H A Duserstreams_005.phpt29 var_dump(ftruncate($fd, $dest_size));
55 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
64 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
68 Warning: ftruncate(): test_wrapper_bad::stream_truncate did not return a boolean! in %s on line %d
H A Dftruncate_bug77081.phpt2 Bug #77081 ftruncate() changes seek pointer in c mode
10 ftruncate($stream, 0);
H A Dlstat_stat_variation21.phpt23 /* ftruncate the current file and check stat() on the file */
32 var_dump( ftruncate($file_handle, 512) ); // truncate it
H A Dfilesize_variation3.phpt20 var_dump( ftruncate($file_handle, $size) );
60 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
/PHP-8.2/ext/zlib/tests/
H A Dzlib_wrapper_ftruncate_basic.phpt2 Test function ftruncate() on zlib wrapper by calling it with its expected arguments
12 ftruncate($h, 20);
17 ftruncate($h, 20);
23 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
/PHP-8.2/ext/spl/tests/SplFileObject/
H A DSplFileObject_ftruncate_error_001.phpt2 SplFileObject::ftruncate function - truncating with stream that does not support truncation
27 $obj->ftruncate(1);

Completed in 53 milliseconds

12