Home
last modified time | relevance | path

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

12

/PHP-7.3/ext/standard/tests/file/
H A Dftruncate_variation1-win32-mb.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
72 *** Testing ftruncate() : usage variations ***
76 -- Testing ftruncate(): truncate file to size = 0 --
84 -- Testing ftruncate(): truncate file to size = 0 --
92 -- Testing ftruncate(): truncate file to size = 0 --
100 -- Testing ftruncate(): truncate file to size = 0 --
108 -- Testing ftruncate(): truncate file to size = 0 --
116 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dftruncate_variation1-win32.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
72 *** Testing ftruncate() : usage variations ***
76 -- Testing ftruncate(): truncate file to size = 0 --
84 -- Testing ftruncate(): truncate file to size = 0 --
92 -- Testing ftruncate(): truncate file to size = 0 --
100 -- Testing ftruncate(): truncate file to size = 0 --
108 -- Testing ftruncate(): truncate file to size = 0 --
116 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dftruncate_variation1.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
72 *** Testing ftruncate() : usage variations ***
76 -- Testing ftruncate(): truncate file to size = 0 --
84 -- Testing ftruncate(): truncate file to size = 0 --
92 -- Testing ftruncate(): truncate file to size = 0 --
100 -- Testing ftruncate(): truncate file to size = 0 --
108 -- Testing ftruncate(): truncate file to size = 0 --
116 -- Testing ftruncate(): truncate file to size = 0 --
[all …]
H A Dftruncate_variation4-win32.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
73 *** Testing ftruncate() : usage variations ***
76 -- Testing ftruncate() with file opening using r mode --
86 -- Testing ftruncate() with file opening using rb mode --
96 -- Testing ftruncate() with file opening using rt mode --
106 -- Testing ftruncate() with file opening using r+ mode --
136 -- Testing ftruncate() with file opening using w mode --
146 -- Testing ftruncate() with file opening using wb mode --
[all …]
H A Dftruncate_variation4.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
73 *** Testing ftruncate() : usage variations ***
76 -- Testing ftruncate() with file opening using r mode --
86 -- Testing ftruncate() with file opening using rb mode --
96 -- Testing ftruncate() with file opening using rt mode --
106 -- Testing ftruncate() with file opening using r+ mode --
136 -- Testing ftruncate() with file opening using w mode --
146 -- Testing ftruncate() with file opening using wb mode --
[all …]
H A Dftruncate_variation2-win32.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
73 *** Testing ftruncate() : usage variations ***
76 -- Testing ftruncate() with file opening using r mode --
84 -- Testing ftruncate() with file opening using rb mode --
92 -- Testing ftruncate() with file opening using rt mode --
100 -- Testing ftruncate() with file opening using r+ mode --
124 -- Testing ftruncate() with file opening using w mode --
172 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation2.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
73 *** Testing ftruncate() : usage variations ***
76 -- Testing ftruncate() with file opening using r mode --
84 -- Testing ftruncate() with file opening using rb mode --
92 -- Testing ftruncate() with file opening using rt mode --
100 -- Testing ftruncate() with file opening using r+ mode --
124 -- Testing ftruncate() with file opening using w mode --
172 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation7-win32.phpt20 echo "*** Testing ftruncate() : usage variations ***\n";
74 *** Testing ftruncate() : usage variations ***
78 -- Testing ftruncate(): File pointer at the end --
86 -- Testing ftruncate(): File pointer at the end --
94 -- Testing ftruncate(): File pointer at the end --
102 -- Testing ftruncate(): File pointer at the end --
110 -- Testing ftruncate(): File pointer at the end --
118 -- Testing ftruncate(): File pointer at the end --
126 -- Testing ftruncate(): File pointer at the end --
134 -- Testing ftruncate(): File pointer at the end --
[all …]
H A Dftruncate_variation7.phpt20 echo "*** Testing ftruncate() : usage variations ***\n";
74 *** Testing ftruncate() : usage variations ***
78 -- Testing ftruncate(): File pointer at the end --
86 -- Testing ftruncate(): File pointer at the end --
94 -- Testing ftruncate(): File pointer at the end --
102 -- Testing ftruncate(): File pointer at the end --
110 -- Testing ftruncate(): File pointer at the end --
118 -- Testing ftruncate(): File pointer at the end --
126 -- Testing ftruncate(): File pointer at the end --
134 -- Testing ftruncate(): File pointer at the end --
[all …]
H A Dftruncate_variation3-win32.phpt2 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 */
72 *** Testing ftruncate() : usage variations ***
75 -- Testing ftruncate() with file opening using r mode --
83 -- Testing ftruncate() with file opening using rb mode --
91 -- Testing ftruncate() with file opening using rt mode --
99 -- Testing ftruncate() with file opening using r+ mode --
123 -- Testing ftruncate() with file opening using w mode --
[all …]
H A Dftruncate_variation3.phpt2 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 */
72 *** Testing ftruncate() : usage variations ***
75 -- Testing ftruncate() with file opening using r mode --
83 -- Testing ftruncate() with file opening using rb mode --
91 -- Testing ftruncate() with file opening using rt mode --
99 -- Testing ftruncate() with file opening using r+ mode --
123 -- Testing ftruncate() with file opening using w mode --
[all …]
H A Dftruncate_variation5-win32.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
74 *** Testing ftruncate() : usage variations ***
77 -- Testing ftruncate() with file opening using r mode --
85 -- Testing ftruncate() with file opening using rb mode --
93 -- Testing ftruncate() with file opening using rt mode --
101 -- Testing ftruncate() with file opening using r+ mode --
125 -- Testing ftruncate() with file opening using w mode --
173 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_variation5.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
19 echo "*** Testing ftruncate() : usage variations ***\n";
21 /* test ftruncate with file opened in different modes */
74 *** Testing ftruncate() : usage variations ***
77 -- Testing ftruncate() with file opening using r mode --
85 -- Testing ftruncate() with file opening using rb mode --
93 -- Testing ftruncate() with file opening using rt mode --
101 -- Testing ftruncate() with file opening using r+ mode --
125 -- Testing ftruncate() with file opening using w mode --
173 -- Testing ftruncate() with file opening using x mode --
[all …]
H A Dftruncate_error.phpt2 Test ftruncate() function : error conditions
6 Prototype: bool ftruncate ( resource $handle, int $size );
10 echo "*** Testing ftruncate() : error conditions ***\n";
21 var_dump( ftruncate() );
24 var_dump( ftruncate( $file_handle ) );
30 var_dump( ftruncate($file_handle, 10, 20) );
53 // ftruncate on close file handle
55 var_dump( ftruncate($file_handle,10) );
59 // ftruncate on a file handle which is unset
62 var_dump( ftruncate(@$fp,10));
[all …]
H A Dftruncate_variation6-win32.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
21 echo "*** Testing ftruncate() : usage variations ***\n";
23 /* test ftruncate with file opened in different modes */
61 if(ftruncate($file_handle, $new_size) ){// truncate it
78 *** Testing ftruncate() : usage variations ***
81 -- Testing ftruncate() with file opening using r mode --
88 -- Testing ftruncate() with file opening using rb mode --
95 -- Testing ftruncate() with file opening using rt mode --
102 -- Testing ftruncate() with file opening using r+ mode --
126 -- Testing ftruncate() with file opening using w mode --
[all …]
H A Dftruncate_variation6.phpt12 Prototype: bool ftruncate ( resource $handle, int $size );
21 echo "*** Testing ftruncate() : usage variations ***\n";
23 /* test ftruncate with file opened in different modes */
61 if(ftruncate($file_handle, $new_size) ){// truncate it
78 *** Testing ftruncate() : usage variations ***
81 -- Testing ftruncate() with file opening using r mode --
88 -- Testing ftruncate() with file opening using rb mode --
95 -- Testing ftruncate() with file opening using rt mode --
102 -- Testing ftruncate() with file opening using r+ mode --
126 -- Testing ftruncate() with file opening using w mode --
[all …]
H A Dftruncate.phpt2 ftruncate() tests
6 $filename = dirname(__FILE__)."/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));
35 var_dump(ftruncate($fp, -1000000000));
52 Warning: ftruncate(): Negative size is not supported in %s on line %d
H A Dbug71882.phpt2 Bug #71882 (Negative ftruncate() on php://memory exhausts memory)
6 var_dump(ftruncate($fd, -1));
10 Warning: ftruncate(): Negative size is not supported in %s%ebug71882.php on line %d
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 Duserstreams_005.phpt28 var_dump(ftruncate($fd, $dest_size));
49 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
59 Warning: ftruncate(): Negative size is not supported in %s on line %d
64 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 Dftruncate_bug76422.phpt2 Bug #76422 ftruncate fails on files > 2GB
21 $ftruncate_result = ftruncate($file_handle, $truncate_offset);
/PHP-7.3/ext/zlib/tests/
H A Dzlib_wrapper_ftruncate_basic.phpt2 Test function ftruncate() on zlib wrapper by calling it with its expected arguments
16 ftruncate($h, 20);
21 ftruncate($h, 20);
28 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
30 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
/PHP-7.3/ext/spl/tests/
H A Dfileobject_005.phpt16 var_dump($fo->ftruncate(4));
25 var_dump($fo->ftruncate());
40 Warning: SplFileObject::ftruncate() expects exactly 1 parameter, 0 given in %s on line %d
H A DSplFileObject_ftruncate_error_001.phpt2 SplFileObject::ftruncate function - truncating with stream that does not support truncation
26 $obj->ftruncate(1);

Completed in 50 milliseconds

12