/PHP-7.4/ext/standard/tests/file/ |
H A D | filesize_variation5.phpt | 2 Test filesize() function: usage variations - size of files 8 * Prototype : int filesize ( string $filename ); 13 echo "*** Testing filesize(): usage variations ***\n"; 16 var_dump( filesize(NULL) ); 17 var_dump( filesize(false) ); 18 var_dump( filesize('') ); 19 var_dump( filesize(' ') ); 20 var_dump( filesize('|') ); 24 *** Testing filesize(): usage variations *** 29 Warning: filesize(): stat failed for in %s on line %d [all …]
|
H A D | filesize_error.phpt | 2 Test filesize() function: error conditions 6 * Prototype : int filesize ( string $filename ); 11 echo "*** Testing filesize(): error conditions ***"; 14 var_dump( filesize("/no/such/file") ); 15 var_dump( filesize("/no/such/dir") ); 18 var_dump( filesize() ); 21 var_dump( filesize(__FILE__, 2000) ); 27 *** Testing filesize(): error conditions *** 28 Warning: filesize(): stat failed for /no/such/file in %s on line %d 31 Warning: filesize(): stat failed for /no/such/dir in %s on line %d [all …]
|
H A D | fgets_variation5.phpt | 62 -- fgets() with length > filesize -- 68 -- fgets() with length > filesize -- 74 -- fgets() with length > filesize -- 81 -- fgets() with length > filesize -- 89 -- fgets() with length > filesize -- 95 -- fgets() with length > filesize -- 101 -- fgets() with length > filesize -- 108 -- fgets() with length > filesize -- 116 -- fgets() with length > filesize -- 122 -- fgets() with length > filesize -- [all …]
|
H A D | filesize_basic.phpt | 2 Test filesize() function: basic functionaity 6 * Prototype: int filesize ( string $filename ); 12 echo "*** Testing size of files and directories with filesize() ***\n"; 16 var_dump( filesize(__FILE__) ); 17 var_dump( filesize(".") ); 23 var_dump( filesize($file_name) ); 34 *** Testing size of files and directories with filesize() ***
|
H A D | filesize_variation1-win32-mb.phpt | 2 Test filesize() function: usage variations - size of files 11 Prototype : int filesize ( string $filename ); 19 echo "*** Testing filesize(): usage variations ***\n"; 21 echo "*** Checking filesize() with different size of files ***\n"; 25 var_dump( filesize( $file_path."/私はガラスを食べられますfilesize_variation1.tmp") ); 33 *** Testing filesize(): usage variations *** 34 *** Checking filesize() with different size of files ***
|
H A D | filesize_variation1-win32.phpt | 2 Test filesize() function: usage variations - size of files 11 Prototype : int filesize ( string $filename ); 19 echo "*** Testing filesize(): usage variations ***\n"; 21 echo "*** Checking filesize() with different size of files ***\n"; 25 var_dump( filesize( $file_path."/filesize_variation1.tmp") ); 33 *** Testing filesize(): usage variations *** 34 *** Checking filesize() with different size of files ***
|
H A D | filesize_variation1.phpt | 2 Test filesize() function: usage variations - size of files 11 Prototype : int filesize ( string $filename ); 19 echo "*** Testing filesize(): usage variations ***\n"; 21 echo "*** Checking filesize() with different size of files ***\n"; 25 var_dump( filesize( $file_path."/filesize_variation1.tmp") ); 32 *** Testing filesize(): usage variations *** 33 *** Checking filesize() with different size of files ***
|
H A D | filesize_variation2-win32.phpt | 2 Test filesize() function: usage variations - size of dir/subdir 11 Prototype : int filesize ( string $filename ); 19 echo "*** Testing filesize(): usage variations ***\n"; 21 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n"; 24 var_dump( filesize( $file_path."/filesize_variation2")); 29 var_dump( filesize( $file_path."/filesize_variation2")); 31 var_dump( filesize( $file_path."/filesize_variation2/filesize_variation2.tmp")); 37 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir 49 var_dump( filesize( $file_path."/filesize_variation2")); 68 *** Testing filesize(): usage variations *** [all …]
|
H A D | filesize_variation2.phpt | 2 Test filesize() function: usage variations - size of dir/subdir 11 Prototype : int filesize ( string $filename ); 19 echo "*** Testing filesize(): usage variations ***\n"; 21 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n"; 24 var_dump( filesize( $file_path."/filesize_variation2")); 29 var_dump( filesize( $file_path."/filesize_variation2")); 31 var_dump( filesize( $file_path."/filesize_variation2/filesize_variation1.tmp")); 37 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir 49 var_dump( filesize( $file_path."/filesize_variation2")); 68 *** Testing filesize(): usage variations *** [all …]
|
H A D | fread_variation3-win32-mb.phpt | 117 -- Reading beyond filesize, expeceted : 1024 bytes -- 131 -- Reading beyond filesize, expeceted : 1024 bytes -- 145 -- Reading beyond filesize, expeceted : 1024 bytes -- 159 -- Reading beyond filesize, expeceted : 1024 bytes -- 173 -- Reading beyond filesize, expeceted : 1024 bytes -- 187 -- Reading beyond filesize, expeceted : 1024 bytes -- 201 -- Reading beyond filesize, expeceted : 1024 bytes -- 215 -- Reading beyond filesize, expeceted : 1024 bytes -- 229 -- Reading beyond filesize, expeceted : 1024 bytes -- 245 -- Reading beyond filesize, expeceted : 1024 bytes -- [all …]
|
H A D | fread_variation3-win32.phpt | 117 -- Reading beyond filesize, expeceted : 1024 bytes -- 131 -- Reading beyond filesize, expeceted : 1024 bytes -- 145 -- Reading beyond filesize, expeceted : 1024 bytes -- 159 -- Reading beyond filesize, expeceted : 1024 bytes -- 173 -- Reading beyond filesize, expeceted : 1024 bytes -- 187 -- Reading beyond filesize, expeceted : 1024 bytes -- 201 -- Reading beyond filesize, expeceted : 1024 bytes -- 215 -- Reading beyond filesize, expeceted : 1024 bytes -- 229 -- Reading beyond filesize, expeceted : 1024 bytes -- 245 -- Reading beyond filesize, expeceted : 1024 bytes -- [all …]
|
H A D | fread_variation3.phpt | 117 -- Reading beyond filesize, expeceted : 1024 bytes -- 131 -- Reading beyond filesize, expeceted : 1024 bytes -- 145 -- Reading beyond filesize, expeceted : 1024 bytes -- 159 -- Reading beyond filesize, expeceted : 1024 bytes -- 173 -- Reading beyond filesize, expeceted : 1024 bytes -- 187 -- Reading beyond filesize, expeceted : 1024 bytes -- 201 -- Reading beyond filesize, expeceted : 1024 bytes -- 215 -- Reading beyond filesize, expeceted : 1024 bytes -- 229 -- Reading beyond filesize, expeceted : 1024 bytes -- 245 -- Reading beyond filesize, expeceted : 1024 bytes -- [all …]
|
H A D | filesize_variation4.phpt | 2 Test filesize() function: usage variations - file mode & holes in file 11 Prototype : int filesize ( string $filename ); 20 echo "*** Testing filesize(): usage variations ***\n"; 31 var_dump( filesize($filename) ); //size of the file = strlen of string 46 var_dump( filesize($filename) ); //203 bytes 53 var_dump( filesize($filename) ); //216 bytes 60 var_dump( filesize($filename) ); //220 bytes 67 var_dump( filesize($filename) ); //226 bytes 72 var_dump( filesize($filename) ); //0 bytes 78 var_dump( filesize($filename) ); //0 bytes [all …]
|
H A D | filesize_variation4-win32.phpt | 2 Test filesize() function: usage variations - file mode & holes in file 11 Prototype : int filesize ( string $filename ); 19 echo "*** Testing filesize(): usage variations ***\n"; 29 var_dump( filesize($filename) ); //size of the file = strlen of string 44 var_dump( filesize($filename) ); //204 bytes 51 var_dump( filesize($filename) ); //218 bytes 58 var_dump( filesize($filename) ); //220 bytes 65 var_dump( filesize($filename) ); //226 bytes 70 var_dump( filesize($filename) ); //0 bytes 76 var_dump( filesize($filename) ); //0 bytes [all …]
|
H A D | filesize_variation3-win32.phpt | 2 Test filesize() function: usage variations - file size after truncate 11 Prototype : int filesize ( string $filename ); 18 echo "*** Testing filesize(): usage variations ***\n"; 24 echo "-- Testing filesize() after truncating the file to a new length --\n"; 28 for($size = filesize($filename); $size>=-1200; $size-=1200) { 32 var_dump( filesize($filename) ); 44 *** Testing filesize(): usage variations *** 45 -- Testing filesize() after truncating the file to a new length --
|
H A D | filesize_variation3.phpt | 2 Test filesize() function: usage variations - file size after truncate 11 Prototype : int filesize ( string $filename ); 18 echo "*** Testing filesize(): usage variations ***\n"; 24 echo "-- Testing filesize() after truncating the file to a new length --\n"; 28 for($size = filesize($filename); $size>=-1200; $size-=1200) { 32 var_dump( filesize($filename) ); 44 *** Testing filesize(): usage variations *** 45 -- Testing filesize() after truncating the file to a new length --
|
H A D | fread_variation4.phpt | 109 -- Reading beyond filesize, expeceted : 1024 bytes -- 126 -- Reading beyond filesize, expeceted : 1024 bytes -- 143 -- Reading beyond filesize, expeceted : 1024 bytes -- 160 -- Reading beyond filesize, expeceted : 1024 bytes -- 177 -- Reading beyond filesize, expeceted : 1024 bytes -- 194 -- Reading beyond filesize, expeceted : 1024 bytes -- 211 -- Reading beyond filesize, expeceted : 1024 bytes -- 228 -- Reading beyond filesize, expeceted : 1024 bytes -- 245 -- Reading beyond filesize, expeceted : 1024 bytes -- 264 -- Reading beyond filesize, expeceted : 1024 bytes -- [all …]
|
H A D | symlink_link_linkinfo_is_link_variation4.phpt | 42 if( filesize($filename) == filesize($linkname) ) 58 if( filesize($filename) == filesize($linkname) ) 74 var_dump( filesize($filename) ); 75 var_dump( filesize($linkname) ); 76 if( filesize($filename) == filesize($linkname) )
|
H A D | copy_variation12.phpt | 29 var_dump( filesize($src_dir) ); 30 var_dump( filesize($dest) ); 46 Warning: filesize(): stat failed for %scopy_copy_variation12 in %scopy_variation12.php on line %d
|
H A D | copy_variation11.phpt | 24 var_dump( filesize($file) ); //size of source before copy 27 var_dump( filesize($dir) ); //size of destination before copy 42 var_dump( filesize($file) ); //size of source after copy 43 var_dump( filesize($dir) ); //size of destination after copy
|
/PHP-7.4/pear/ |
H A D | fetch.php | 10 static $filesize = null; 30 $filesize = $bytes_max; 31 echo "Filesize: ", $filesize, "\n"; 40 if (!isset($filesize)) { 43 $length = (int)(($bytes_transferred/$filesize)*100); 44 … (%2d/%2d kb)", str_repeat("=", $length). ">", $length, ($bytes_transferred/1024), $filesize/1024);
|
/PHP-7.4/tests/security/ |
H A D | open_basedir_filesize.phpt | 8 test_open_basedir("filesize"); 16 *** Testing open_basedir configuration [filesize] *** 23 Warning: filesize(): open_basedir restriction in effect. File(../bad) is not within the allowed pat… 26 Warning: filesize(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the all… 29 Warning: filesize(): open_basedir restriction in effect. File(..) is not within the allowed path(s)… 32 Warning: filesize(): open_basedir restriction in effect. File(../) is not within the allowed path(s… 35 Warning: filesize(): open_basedir restriction in effect. File(/) is not within the allowed path(s):… 38 Warning: filesize(): open_basedir restriction in effect. File(../bad/.) is not within the allowed p… 41 Warning: filesize(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within th… 47 Warning: filesize(): open_basedir restriction in effect. File(./../.) is not within the allowed pat… [all …]
|
/PHP-7.4/ext/zlib/tests/ |
H A D | zlib_scheme_stat_basic2.phpt | 22 echo "filesize="; 23 var_dump(filesize($srcFile)); 37 filesize= 38 Warning: filesize(): stat failed for compress.zlib://%s004.txt.gz in %s on line %d
|
/PHP-7.4/ext/mysqli/tests/ |
H A D | mysqli_debug_ini.phpt | 41 if (filesize($trace_file) < 50) 42 … printf("[004] Trace file '%s' is very small. filesize() reports only %d bytes. Please check.\n", 44 filesize($trace_file));
|
/PHP-7.4/ext/spl/tests/ |
H A D | bug65545.phpt | 16 $data = $obj->fread(filesize(__FILE__) + 32); 17 var_dump(strlen($data) === filesize(__FILE__) - 5);
|