/PHP-7.2/ext/standard/tests/file/ |
H A D | ftruncate_variation1-win32-mb.phpt | 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 *** 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 D | ftruncate_variation1-win32.phpt | 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 *** 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 D | ftruncate_variation1.phpt | 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 *** 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 D | ftruncate_variation4-win32.phpt | 12 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 D | ftruncate_variation4.phpt | 12 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 D | ftruncate_variation2-win32.phpt | 12 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 D | ftruncate_variation2.phpt | 12 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 D | ftruncate_variation7-win32.phpt | 20 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 D | ftruncate_variation7.phpt | 20 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 D | ftruncate_variation3-win32.phpt | 2 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 D | ftruncate_variation3.phpt | 2 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 D | ftruncate_variation5-win32.phpt | 12 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 D | ftruncate_variation5.phpt | 12 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 D | ftruncate_error.phpt | 2 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 D | ftruncate_variation6-win32.phpt | 12 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 D | ftruncate_variation6.phpt | 12 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 D | ftruncate.phpt | 2 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 D | bug71882.phpt | 2 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 D | userstreams_005.phpt | 28 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 D | lstat_stat_variation21.phpt | 30 /* ftruncate the current file and check stat() on the file */ 39 var_dump( ftruncate($file_handle, 512) ); // truncate it
|
/PHP-7.2/ext/zlib/tests/ |
H A D | zlib_wrapper_ftruncate_basic.phpt | 2 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.2/ext/spl/tests/ |
H A D | fileobject_005.phpt | 16 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 D | SplFileObject_ftruncate_error_001.phpt | 2 SplFileObject::ftruncate function - truncating with stream that does not support truncation 26 $obj->ftruncate(1);
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | vfprintf_error3.phpt | 24 ftruncate( $fp, 0 ); 31 ftruncate( $fp, 0 );
|
/PHP-7.2/ext/standard/ |
H A D | flock_compat.h | 50 # define ftruncate(a, b) chsize(a, b) macro
|