/PHP-7.2/ext/standard/tests/file/ |
H A D | filesize_variation1-win32-mb.phpt | 2 Test filesize() function: usage variations - size of files 12 Description : Returns the size of the file in bytes, or FALSE 21 echo "*** Checking filesize() with different size of files ***\n"; 22 for($size = 1; $size <10000; $size = $size+1000) 24 create_files($file_path, 1, "numeric", 0755, $size, "w", "私はガラスを食べられますfilesize_variation"); 34 *** Checking filesize() with different size of files ***
|
H A D | filesize_variation1-win32.phpt | 2 Test filesize() function: usage variations - size of files 12 Description : Returns the size of the file in bytes, or FALSE 21 echo "*** Checking filesize() with different size of files ***\n"; 22 for($size = 1; $size <10000; $size = $size+1000) 24 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation"); 34 *** Checking filesize() with different size of files ***
|
H A D | filesize_variation1.phpt | 2 Test filesize() function: usage variations - size of files 12 Description : Returns the size of the file in bytes, or FALSE 21 echo "*** Checking filesize() with different size of files ***\n"; 22 for($size = 1; $size <10000; $size = $size+1000) 24 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation"); 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 12 Description : Returns the size of the file in bytes, or FALSE 21 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n"; 22 echo "-- Creating a base dir, and checking its size --\n"; 27 echo "-- Creating a file inside base dir, and checking dir & file size --\n"; 48 // size of base dir 51 // size of subdir 54 // size of file inside subdir 70 *** Testing size of a dir, sub-dir and file with filesize() *** 71 -- Creating a base dir, and checking its size -- [all …]
|
H A D | filesize_variation2.phpt | 2 Test filesize() function: usage variations - size of dir/subdir 12 Description : Returns the size of the file in bytes, or FALSE 21 echo "\n*** Testing size of a dir, sub-dir and file with filesize() ***\n"; 22 echo "-- Creating a base dir, and checking its size --\n"; 27 echo "-- Creating a file inside base dir, and checking dir & file size --\n"; 48 // size of base dir 51 // size of subdir 54 // size of file inside subdir 70 *** Testing size of a dir, sub-dir and file with filesize() *** 71 -- Creating a base dir, and checking its size -- [all …]
|
H A D | filesize_variation3-win32.phpt | 2 Test filesize() function: usage variations - file size after truncate 12 Description : Returns the size of the file in bytes, or FALSE 21 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes 25 // truncate the file created earlier in subdir, the size of the file is 12000bytes 26 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes, 27 // until -1200bytes size 28 for($size = filesize($filename); $size>=-1200; $size-=1200) { 30 var_dump( ftruncate($file_handle, $size) ); 69 Warning: ftruncate(): Negative size is not supported in %s on line %d
|
H A D | filesize_variation3.phpt | 2 Test filesize() function: usage variations - file size after truncate 12 Description : Returns the size of the file in bytes, or FALSE 21 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes 25 // truncate the file created earlier in subdir, the size of the file is 12000bytes 26 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes, 27 // until -1200bytes size 28 for($size = filesize($filename); $size>=-1200; $size-=1200) { 30 var_dump( ftruncate($file_handle, $size) ); 69 Warning: ftruncate(): Negative size is not supported in %s on line %d
|
H A D | filesize_variation4-win32.phpt | 12 Description : Returns the size of the file in bytes, or FALSE 24 echo "-- opening the file in 'w' mode and get the size --\n"; 29 var_dump( filesize($filename) ); //size of the file = strlen of string 32 echo "-- opening the file in 'wt' mode and get the size --\n"; 37 var_dump( filesize($filename) ); //size of the file = 192 bytes != strlen of string 54 echo "-- creating a hole and checking the size --\n"; 61 echo "-- writing data after hole and checking the size --\n"; 90 -- opening the file in 'w' mode and get the size -- 93 -- opening the file in 'wt' mode and get the size -- 100 -- creating a hole and checking the size -- [all …]
|
H A D | filesize_variation4.phpt | 12 Description : Returns the size of the file in bytes, or FALSE 26 echo "-- opening the file in 'w' mode and get the size --\n"; 31 var_dump( filesize($filename) ); //size of the file = strlen of string 34 echo "-- opening the file in 'wt' mode and get the size --\n"; 39 var_dump( filesize($filename) ); //size of the file = strlen of string = 191 bytes 56 echo "-- creating a hole and checking the size --\n"; 63 echo "-- writing data after hole and checking the size --\n"; 92 -- opening the file in 'w' mode and get the size -- 95 -- opening the file in 'wt' mode and get the size -- 102 -- creating a hole and checking the size -- [all …]
|
H A D | file.inc | 122 $size = $file_size; 124 if ( $size > $chunk_size ) { 129 $chunk_size = $size; 136 $size -= $chunk_size; 137 } while ( $size > 0 ); 219 $size = size of the fill in terms of kilobyte, i.e size of the file. 237 $size = 1, 252 // check for proper size 253 if ( $size == 0 ) 257 $file_size = $size; [all …]
|
H A D | file_get_contents_variation9.phpt | 26 //Data should be more than the size of a link.
|
H A D | fgets_variation5.phpt | 38 /* read with length beyong file size */
|
H A D | fgetcsv_variation6.phpt | 2 Test fgetcsv() : usage variations - with length less than line size 12 value less than the line size 15 echo "*** Testing fgetcsv() : with length less than line size ***\n"; 77 // use length as less than the actual size of the line 99 *** Testing fgetcsv() : with length less than line size ***
|
H A D | fgetcsv_variation17.phpt | 2 Test fgetcsv() : usage variations - with default enclosure & length less than line size 11 and length value less than the size of line being read 14 echo "*** Testing fgetcsv() : with default enclosure & length less than line size ***\n"; 71 // use length as less than the actual size of the line 94 *** Testing fgetcsv() : with default enclosure & length less than line size ***
|
H A D | bug71882.phpt | 10 Warning: ftruncate(): Negative size is not supported in %s%ebug71882.php on line %d
|
H A D | copy_variation17.phpt | 39 var_dump( filesize($dest_file_name) ); //size of destination
|
H A D | copy_variation18.phpt | 37 "rdev", "size", "mtime", "ctime",
|
H A D | copy_variation2-win32-mb.phpt | 16 and checking the existence and size of destination files
|
H A D | copy_variation2-win32.phpt | 16 and checking the existence and size of destination files
|
H A D | copy_variation2.phpt | 16 and checking the existence and size of destination files
|
H A D | copy_variation7.phpt | 32 var_dump( filesize($file_path."/copy_variation7_symlink.tmp") ); //size of the symlink itself 34 var_dump( filesize($file_path."/copy_variation7_hardlink.tmp") ); //size of the file
|
H A D | copy_variation1.phpt | 11 and checking the existence and size of destination files
|
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
|
H A D | copy_variation14.phpt | 27 var_dump( filesize($file) ); //size of the source
|
H A D | copy_variation15.phpt | 45 var_dump( filesize($file) ); //size of source
|