Home
last modified time | relevance | path

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

12

/PHP-7.0/ext/standard/tests/file/
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_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_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 --
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_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 --
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));
H A Dbug71882.phpt2 Bug #71882 (Negative ftruncate() on php://memory exhausts memory)
6 var_dump(ftruncate($fd, -1));
H A Duserstreams_005.phpt28 var_dump(ftruncate($fd, $dest_size));
49 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
62 Warning: ftruncate(): test_wrapper_bad::stream_truncate did not return a boolean! in %s on line %d
H A Dlstat_stat_variation21.phpt30 /* ftruncate the current file and check stat() on the file */
39 var_dump( ftruncate($file_handle, 512) ); // truncate it
/PHP-7.0/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);
29 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
31 Warning: ftruncate(): Can't truncate this stream! in %s on line %d
/PHP-7.0/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);
/PHP-7.0/ext/standard/tests/strings/
H A Dvfprintf_error3.phpt24 ftruncate( $fp, 0 );
31 ftruncate( $fp, 0 );
/PHP-7.0/ext/standard/
H A Dflock_compat.h50 # define ftruncate(a, b) chsize(a, b) macro
/PHP-7.0/ext/standard/tests/streams/
H A Dbug61115-1.phpt14 ftruncate($fileResourceTemp, PHP_INT_MAX);

Completed in 72 milliseconds

12