/PHP-8.3/ext/standard/tests/file/ |
H A D | ftruncate_variation1-win32.phpt | 14 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 D | ftruncate_variation1-win32-mb.phpt | 14 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 D | ftruncate_variation1.phpt | 14 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 D | ftruncate_variation7-win32.phpt | 15 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 D | ftruncate_variation7.phpt | 15 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 D | ftruncate_variation4.phpt | 8 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 D | ftruncate_variation2.phpt | 14 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 D | ftruncate_variation3.phpt | 2 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 D | ftruncate_variation5.phpt | 14 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 D | ftruncate_variation2-win32.phpt | 14 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 D | ftruncate_variation3-win32.phpt | 2 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 D | ftruncate_variation5-win32.phpt | 14 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 D | ftruncate_variation6-win32.phpt | 16 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 D | ftruncate_variation6.phpt | 16 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 D | ftruncate_error.phpt | 2 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 D | ftruncate.phpt | 2 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 D | bug71882.phpt | 2 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 D | ftruncate_bug76803.phpt | 2 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 D | userstreams_005.phpt | 29 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 D | ftruncate_bug76422.phpt | 2 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 D | ftruncate_bug77081.phpt | 2 Bug #77081 ftruncate() changes seek pointer in c mode 10 ftruncate($stream, 0);
|
H A D | lstat_stat_variation21.phpt | 23 /* ftruncate the current file and check stat() on the file */ 32 var_dump( ftruncate($file_handle, 512) ); // truncate it
|
H A D | filesize_variation3.phpt | 20 var_dump( ftruncate($file_handle, $size) ); 60 ftruncate(): Argument #2 ($size) must be greater than or equal to 0
|
/PHP-8.3/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 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.3/ext/spl/tests/SplFileObject/ |
H A D | SplFileObject_ftruncate_error_001.phpt | 2 SplFileObject::ftruncate function - truncating with stream that does not support truncation 27 $obj->ftruncate(1);
|