/PHP-7.4/ext/standard/tests/file/ |
H A D | 001-win32.phpt | 14 @unlink('test.file'); 44 echo "test.file is " . filetype('test.file') . "\n"; 46 echo "test.file size is " . filesize('test.file') . "\n"; 58 echo "test.file is a regular file\n"; 60 echo "test.file is not a regular file\n"; 72 unlink('test.file'); 87 test.file exists 89 test.file exists 90 test.file is file 92 test.file size is 0 [all …]
|
H A D | is_readable_basic-win32-mb.phpt | 16 require __DIR__.'/file.inc'; 20 // create a file 35 // delete the temp file 42 -- Changing mode of file to 0 -- 44 -- Changing mode of file to 1 -- 46 -- Changing mode of file to 2 -- 48 -- Changing mode of file to 3 -- 50 -- Changing mode of file to 4 -- 52 -- Changing mode of file to 5 -- 54 -- Changing mode of file to 6 -- [all …]
|
H A D | is_readable_basic-win32.phpt | 16 require __DIR__.'/file.inc'; 20 // create a file 35 // delete the temp file 42 -- Changing mode of file to 0 -- 44 -- Changing mode of file to 1 -- 46 -- Changing mode of file to 2 -- 48 -- Changing mode of file to 3 -- 50 -- Changing mode of file to 4 -- 52 -- Changing mode of file to 5 -- 54 -- Changing mode of file to 6 -- [all …]
|
H A D | is_readable_basic.phpt | 17 require __DIR__.'/file.inc'; 21 // create a file 36 // delete the temp file 43 -- Changing mode of file to 0 -- 45 -- Changing mode of file to 1 -- 47 -- Changing mode of file to 2 -- 49 -- Changing mode of file to 3 -- 51 -- Changing mode of file to 4 -- 53 -- Changing mode of file to 5 -- 55 -- Changing mode of file to 6 -- [all …]
|
H A D | is_executable_basic.phpt | 17 require __DIR__.'/file.inc'; 21 // create a file 36 // delete the temp file 43 -- Changing mode of file to 0 -- 45 -- Changing mode of file to 1 -- 47 -- Changing mode of file to 2 -- 49 -- Changing mode of file to 3 -- 51 -- Changing mode of file to 4 -- 53 -- Changing mode of file to 5 -- 55 -- Changing mode of file to 6 -- [all …]
|
H A D | is_executable_basic-win32-mb.phpt | 14 require __DIR__.'/file.inc'; 18 // create a file 33 // delete the temp file 40 -- Changing mode of file to 0 -- 42 -- Changing mode of file to 1 -- 44 -- Changing mode of file to 2 -- 46 -- Changing mode of file to 3 -- 48 -- Changing mode of file to 4 -- 50 -- Changing mode of file to 5 -- 52 -- Changing mode of file to 6 -- [all …]
|
H A D | is_executable_basic-win32.phpt | 14 require __DIR__.'/file.inc'; 18 // create a file 33 // delete the temp file 40 -- Changing mode of file to 0 -- 42 -- Changing mode of file to 1 -- 44 -- Changing mode of file to 2 -- 46 -- Changing mode of file to 3 -- 48 -- Changing mode of file to 4 -- 50 -- Changing mode of file to 5 -- 52 -- Changing mode of file to 6 -- [all …]
|
H A D | unlink_variation8.phpt | 114 file removed 116 file unlinked 118 file unlinked 120 file removed 122 file unlinked 124 file unlinked 126 file removed 128 file unlinked 150 file removed 156 file removed [all …]
|
H A D | 001.phpt | 13 @unlink('test.file'); 63 echo "test.file is " . filetype('test.file') . "\n"; 66 echo "test.file size is " . filesize('test.file') . "\n"; 83 echo "test.file is a regular file\n"; 85 echo "test.file is not a regular file\n"; 107 unlink('test.file'); 123 test.file exists 127 test.file exists 133 test.file is file 136 test.file size is 0 [all …]
|
H A D | is_writable_basic.phpt | 16 require __DIR__.'/file.inc'; 20 // create a file 36 // delete the temp file 43 -- Changing mode of file to 0 -- 46 -- Changing mode of file to 1 -- 49 -- Changing mode of file to 2 -- 52 -- Changing mode of file to 3 -- 55 -- Changing mode of file to 4 -- 58 -- Changing mode of file to 5 -- 61 -- Changing mode of file to 6 -- [all …]
|
H A D | copy_variation2.phpt | 72 echo "Size of source file => "; 100 Size of source file => int(1500) 107 Size of source file => int(1500) 114 Size of source file => int(1500) 121 Size of source file => int(1500) 128 Size of source file => int(1500) 135 Size of source file => int(1500) 142 Size of source file => int(1500) 149 Size of source file => int(1500) 156 Size of source file => int(1500) [all …]
|
H A D | copy_variation2-win32-mb.phpt | 99 Size of source file => int(1500) 106 Size of source file => int(1500) 113 Size of source file => int(1500) 120 Size of source file => int(1500) 139 Size of source file => int(1500) 146 Size of source file => int(1500) 153 Size of source file => int(1500) 166 Size of source file => int(1500) 173 Size of source file => int(1500) 180 Size of source file => int(1500) [all …]
|
H A D | copy_variation2-win32.phpt | 99 Size of source file => int(1500) 106 Size of source file => int(1500) 113 Size of source file => int(1500) 120 Size of source file => int(1500) 139 Size of source file => int(1500) 146 Size of source file => int(1500) 153 Size of source file => int(1500) 166 Size of source file => int(1500) 173 Size of source file => int(1500) 180 Size of source file => int(1500) [all …]
|
H A D | unlink_variation8-win32.phpt | 22 $tmpFile = "file.tmp"; 63 touch($file); 75 unlink($file); 83 file removed 85 file removed 87 file removed 95 file removed 97 file removed 99 file removed 110 file removed [all …]
|
H A D | fopen_variation14-win32.phpt | 29 $files = array("file://$testDir\\$file", 30 "file://$testDir/$file", 31 "file://./$testDir/$file", 32 "file://.\\$testDir\\$file", 33 "file://$absTestDir/$file", 34 "file://$absTestDir\\$file", 35 "file://$unixifiedDir/$file" 41 $files = array("file://../$testDir/$file", 43 "file://$absTestDir/$file", 44 "file://$absTestDir\\$file", [all …]
|
H A D | copy_variation1.phpt | 25 "copy.tmp", //regular file name 57 echo "Size of source file => "; 85 Size of source file => int(1500) 92 Size of source file => int(1500) 98 Destination file name => %s/.tmp 99 Size of source file => int(1500) 106 Size of source file => int(1500) 113 Size of source file => int(1500) 119 Destination file name => %s/123 120 Size of source file => int(1500) [all …]
|
H A D | unlink_variation9-win32.phpt | 22 $tmpFile = "file.tmp"; 63 touch($file); 85 file removed 87 file removed 89 file removed 97 file removed 99 file removed 101 file removed 112 file removed 114 file removed [all …]
|
H A D | fopen_variation15-win32.phpt | 32 $files = array("file://$testDir\\$file", 33 "file://$testDir/$file", 34 "file://./$testDir/$file", 35 "file://.\\$testDir\\$file", 36 "file://$absTestDir/$file", 37 "file://$absTestDir\\$file", 38 "file://$unixifiedDir/$file" 44 $files = array("file://../$testDir/$file", 46 "file://$absTestDir/$file", 47 "file://$absTestDir\\$file", [all …]
|
H A D | fread_variation2.phpt | 16 include ("file.inc"); 82 // read from file, by giving the file actual size, 120 -- Reading file content less than max. file size, expeceted : 0 bytes -- 139 -- Reading file content less than max. file size, expeceted : 0 bytes -- 158 -- Reading file content less than max. file size, expeceted : 0 bytes -- 177 -- Reading file content less than max. file size, expeceted : 0 bytes -- 196 -- Reading file content less than max. file size, expeceted : 0 bytes -- 215 -- Reading file content less than max. file size, expeceted : 0 bytes -- 234 -- Reading file content less than max. file size, expeceted : 0 bytes -- 253 -- Reading file content less than max. file size, expeceted : 0 bytes -- [all …]
|
H A D | fread_variation1.phpt | 14 Read entire file 18 include ("file.inc"); 83 // read from file, by giving the file actual size, 119 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 134 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 149 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 164 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 179 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 194 -- Reading file content less than max. file size, expeceted : 1000 bytes -- 209 -- Reading file content less than max. file size, expeceted : 1000 bytes -- [all …]
|
H A D | copy_variation16.phpt | 33 echo "- Size of source file => "; 53 echo "Size of source file => "; 84 - Size of source file => int(3500) 88 Size of source file => int(3500) 95 Size of source file => int(3500) 102 Size of source file => int(3500) 109 Size of source file => int(3500) 116 Size of source file => int(3500) 123 Size of source file => int(3500) 130 Size of source file => int(3500) [all …]
|
H A D | copy_variation6.phpt | 31 echo "Size of source file => "; 61 echo "Size of source file => "; 83 Size of source file => int(0) 90 Size of source file => int(0) 97 Size of source file => int(0) 104 Size of source file => int(0) 111 Size of source file => int(0) 118 Size of source file => int(0) 125 Size of source file => int(0) 132 Size of source file => int(0) [all …]
|
H A D | ftruncate_variation1-win32-mb.phpt | 13 Description: Truncates a file to a given length 16 // include common file related test functions 17 include ("file.inc"); 21 /* test ftruncate with file opened in different modes */ 35 // create 1 file with some contents 38 // fopen the file using the $file_modes 43 // fopen the file using the $file_modes 47 echo "Error: failed to open file $filename!\n"; 51 rewind($file_handle); // file pointer to 0 76 -- Testing ftruncate(): truncate file to size = 0 -- [all …]
|
H A D | ftruncate_variation1-win32.phpt | 13 Description: Truncates a file to a given length 16 // include common file related test functions 17 include ("file.inc"); 21 /* test ftruncate with file opened in different modes */ 35 // create 1 file with some contents 38 // fopen the file using the $file_modes 43 // fopen the file using the $file_modes 47 echo "Error: failed to open file $filename!\n"; 51 rewind($file_handle); // file pointer to 0 76 -- Testing ftruncate(): truncate file to size = 0 -- [all …]
|
/PHP-7.4/ext/hash/tests/ |
H A D | hash_file_basic1.phpt | 14 $file = __DIR__ . "hash_file.txt"; 15 /* Creating a temporary file file */ 16 if (($fp = fopen( $file, "w+")) == FALSE) { 17 echo "Cannot create file ($file)"; 21 /* Writing into file */ 23 if (is_writable($file)) { 25 echo "Cannot write to file ($file)"; 30 // close the file 37 echo "md2: " . hash_file('md2', $file). "\n"; 38 echo "md4: " . hash_file('md4', $file). "\n"; [all …]
|