/php-src/ext/standard/tests/file/ |
H A D | filesize_variation5.phpt | 2 Test filesize() function: usage variations - size of files 7 echo "*** Testing filesize(): usage variations ***\n"; 10 var_dump( filesize(false) ); 11 var_dump( filesize('') ); 12 var_dump( filesize(' ') ); 13 var_dump( filesize('|') ); 17 *** Testing filesize(): usage variations *** 21 Warning: filesize(): stat failed for in %s on line %d 24 Warning: filesize(): stat failed for | in %s on line %d
|
H A D | filesize_error.phpt | 2 Test filesize() function: error conditions 5 echo "*** Testing filesize(): error conditions ***"; 8 var_dump( filesize("/no/such/file") ); 9 var_dump( filesize("/no/such/dir") ); 14 *** Testing filesize(): error conditions *** 15 Warning: filesize(): stat failed for /no/such/file in %s on line %d 18 Warning: filesize(): stat failed for /no/such/dir in %s on line %d
|
H A D | fgets_variation5.phpt | 57 -- fgets() with length > filesize -- 63 -- fgets() with length > filesize -- 69 -- fgets() with length > filesize -- 76 -- fgets() with length > filesize -- 84 -- fgets() with length > filesize -- 90 -- fgets() with length > filesize -- 96 -- fgets() with length > filesize -- 103 -- fgets() with length > filesize -- 111 -- fgets() with length > filesize -- 117 -- fgets() with length > filesize -- [all …]
|
H A D | filesize_basic.phpt | 2 Test filesize() function: basic functionaity 5 echo "*** Testing size of files and directories with filesize() ***\n"; 9 var_dump( filesize(__FILE__) ); 10 var_dump( filesize(".") ); 16 var_dump( filesize($file_name) ); 27 *** 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 14 echo "*** Testing filesize(): usage variations ***\n"; 16 echo "*** Checking filesize() with different size of files ***\n"; 20 var_dump( filesize( $file_path."/私はガラスを食べられますfilesize_variation1.tmp") ); 28 *** Testing filesize(): usage variations *** 29 *** Checking filesize() with different size of files ***
|
H A D | filesize_variation1-win32.phpt | 2 Test filesize() function: usage variations - size of files 14 echo "*** Testing filesize(): usage variations ***\n"; 16 echo "*** Checking filesize() with different size of files ***\n"; 20 var_dump( filesize( $file_path."/filesize_variation1.tmp") ); 28 *** Testing filesize(): usage variations *** 29 *** Checking filesize() with different size of files ***
|
H A D | filesize_variation2-win32.phpt | 2 Test filesize() function: usage variations - size of dir/subdir 14 echo "*** Testing filesize(): usage variations ***\n"; 16 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n"; 19 var_dump( filesize( $file_path."/filesize_variation2")); 24 var_dump( filesize( $file_path."/filesize_variation2")); 26 var_dump( filesize( $file_path."/filesize_variation2/filesize_variation2.tmp")); 32 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir 44 var_dump( filesize( $file_path."/filesize_variation2")); 47 var_dump( filesize( $file_path."/filesize_variation2/filesize_variation2_sub")); 63 *** Testing filesize(): usage variations *** [all …]
|
H A D | filesize_variation2.phpt | 2 Test filesize() function: usage variations - size of dir/subdir 14 echo "*** Testing filesize(): usage variations ***\n"; 16 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n"; 19 var_dump( filesize( $file_path."/filesize_variation2")); 24 var_dump( filesize( $file_path."/filesize_variation2")); 26 var_dump( filesize( $file_path."/filesize_variation2/filesize_variation1.tmp")); 32 var_dump( filesize( $file_path."/filesize_variation2")); // size of base dir 44 var_dump( filesize( $file_path."/filesize_variation2")); 47 var_dump( filesize( $file_path."/filesize_variation2/filesize_variation2_sub")); 63 *** Testing filesize(): usage variations *** [all …]
|
H A D | filesize_variation1.phpt | 2 Test filesize() function: usage variations - size of files 14 echo "*** Testing filesize(): usage variations ***\n"; 16 echo "*** Checking filesize() with different size of files ***\n"; 20 var_dump( filesize( $file_path."/filesize_variation1.tmp") ); 28 *** Testing filesize(): usage variations *** 29 *** Checking filesize() with different size of files ***
|
H A D | fread_variation3-win32-mb.phpt | 109 -- Reading beyond filesize, expected : 1024 bytes -- 123 -- Reading beyond filesize, expected : 1024 bytes -- 137 -- Reading beyond filesize, expected : 1024 bytes -- 151 -- Reading beyond filesize, expected : 1024 bytes -- 165 -- Reading beyond filesize, expected : 1024 bytes -- 179 -- Reading beyond filesize, expected : 1024 bytes -- 193 -- Reading beyond filesize, expected : 1024 bytes -- 207 -- Reading beyond filesize, expected : 1024 bytes -- 221 -- Reading beyond filesize, expected : 1024 bytes -- 237 -- Reading beyond filesize, expected : 1024 bytes -- [all …]
|
H A D | fread_variation3-win32.phpt | 109 -- Reading beyond filesize, expected : 1024 bytes -- 123 -- Reading beyond filesize, expected : 1024 bytes -- 137 -- Reading beyond filesize, expected : 1024 bytes -- 151 -- Reading beyond filesize, expected : 1024 bytes -- 165 -- Reading beyond filesize, expected : 1024 bytes -- 179 -- Reading beyond filesize, expected : 1024 bytes -- 193 -- Reading beyond filesize, expected : 1024 bytes -- 207 -- Reading beyond filesize, expected : 1024 bytes -- 221 -- Reading beyond filesize, expected : 1024 bytes -- 237 -- Reading beyond filesize, expected : 1024 bytes -- [all …]
|
H A D | fread_variation3.phpt | 109 -- Reading beyond filesize, expected : 1024 bytes -- 123 -- Reading beyond filesize, expected : 1024 bytes -- 137 -- Reading beyond filesize, expected : 1024 bytes -- 151 -- Reading beyond filesize, expected : 1024 bytes -- 165 -- Reading beyond filesize, expected : 1024 bytes -- 179 -- Reading beyond filesize, expected : 1024 bytes -- 193 -- Reading beyond filesize, expected : 1024 bytes -- 207 -- Reading beyond filesize, expected : 1024 bytes -- 221 -- Reading beyond filesize, expected : 1024 bytes -- 237 -- Reading beyond filesize, expected : 1024 bytes -- [all …]
|
H A D | filesize_variation4.phpt | 2 Test filesize() function: usage variations - file mode & holes in file 15 echo "*** Testing filesize(): usage variations ***\n"; 26 var_dump( filesize($filename) ); //size of the file = strlen of string 34 var_dump( filesize($filename) ); //size of the file = strlen of string = 191 bytes 41 var_dump( filesize($filename) ); //203 bytes 48 var_dump( filesize($filename) ); //216 bytes 55 var_dump( filesize($filename) ); //220 bytes 62 var_dump( filesize($filename) ); //226 bytes 67 var_dump( filesize($filename) ); //0 bytes 73 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 14 echo "*** Testing filesize(): usage variations ***\n"; 24 var_dump( filesize($filename) ); //size of the file = strlen of string 32 var_dump( filesize($filename) ); //size of the file = 192 bytes != strlen of string 39 var_dump( filesize($filename) ); //204 bytes 46 var_dump( filesize($filename) ); //218 bytes 53 var_dump( filesize($filename) ); //220 bytes 60 var_dump( filesize($filename) ); //226 bytes 65 var_dump( filesize($filename) ); //0 bytes 71 var_dump( filesize($filename) ); //0 bytes [all …]
|
H A D | filesize_variation3.phpt | 2 Test filesize() function: usage variations - file size after truncate 7 echo "*** Testing filesize(): usage variations ***\n"; 13 echo "-- Testing filesize() after truncating the file to a new length --\n"; 17 for($size = filesize($filename); $size>=-1200; $size-=1200) { 25 var_dump( filesize($filename) ); 36 *** Testing filesize(): usage variations *** 37 -- Testing filesize() after truncating the file to a new length --
|
H A D | fread_variation4.phpt | 101 -- Reading beyond filesize, expected : 1024 bytes -- 118 -- Reading beyond filesize, expected : 1024 bytes -- 135 -- Reading beyond filesize, expected : 1024 bytes -- 152 -- Reading beyond filesize, expected : 1024 bytes -- 169 -- Reading beyond filesize, expected : 1024 bytes -- 186 -- Reading beyond filesize, expected : 1024 bytes -- 203 -- Reading beyond filesize, expected : 1024 bytes -- 220 -- Reading beyond filesize, expected : 1024 bytes -- 237 -- Reading beyond filesize, expected : 1024 bytes -- 256 -- Reading beyond filesize, expected : 1024 bytes -- [all …]
|
H A D | symlink_link_linkinfo_is_link_variation4.phpt | 29 if( filesize($filename) == filesize($linkname) ) 45 if( filesize($filename) == filesize($linkname) ) 61 var_dump( filesize($filename) ); 62 var_dump( filesize($linkname) ); 63 if( filesize($filename) == filesize($linkname) )
|
H A D | copy_variation12.phpt | 24 var_dump( filesize($src_dir) ); 25 var_dump( filesize($dest) ); 41 Warning: filesize(): stat failed for %scopy_copy_variation12 in %scopy_variation12.php on line %d
|
H A D | bug39538.phpt | 16 $parsed_content = fgetcsv(fopen($file, "r"), filesize($file), escape: "\\"); 29 $parsed_content = fgetcsv(fopen($file, "r"), filesize($file), escape: "\\"); 42 $parsed_content = fgetcsv(fopen($file, "r"), filesize($file), escape: "\\");
|
H A D | copy_variation11.phpt | 19 var_dump( filesize($file) ); //size of source before copy 22 var_dump( filesize($dir) ); //size of destination before copy 37 var_dump( filesize($file) ); //size of source after copy 38 var_dump( filesize($dir) ); //size of destination after copy
|
/php-src/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-src/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-src/ext/zlib/tests/ |
H A D | zlib_scheme_stat_basic2.phpt | 18 echo "filesize="; 19 var_dump(filesize($srcFile)); 32 filesize= 33 Warning: filesize(): stat failed for compress.zlib://%s004.txt.gz in %s on line %d
|
/php-src/ext/standard/tests/streams/ |
H A D | gh10031.phpt | 38 if ($code === STREAM_NOTIFY_FILE_SIZE_IS) echo "expected filesize=$bytes_max".PHP_EOL; 45 echo "got filesize=" . strlen($get) . PHP_EOL; 50 expected filesize=1000 51 got filesize=1000
|
/php-src/ext/spl/tests/SplFileObject/ |
H A D | bug65545.phpt | 17 $data = $obj->fread(filesize(__FILE__) + 32); 18 var_dump(strlen($data) === filesize(__FILE__) - 5);
|