1--TEST-- 2Test filesize() function: usage variations - size of files 3--SKIPIF-- 4<?php 5if (substr(PHP_OS, 0, 3) != 'WIN') { 6 die('skip only valid for Windows'); 7} 8?> 9--FILE-- 10<?php 11$file_path = __DIR__; 12require($file_path."/file.inc"); 13 14echo "*** Testing filesize(): usage variations ***\n"; 15 16echo "*** Checking filesize() with different size of files ***\n"; 17for($size = 1; $size <10000; $size = $size+1000) 18{ 19 create_files($file_path, 1, "numeric", 0755, $size, "w", "私はガラスを食べられますfilesize_variation"); 20 var_dump( filesize( $file_path."/私はガラスを食べられますfilesize_variation1.tmp") ); 21 clearstatcache(); 22 delete_files($file_path, 1, "私はガラスを食べられますfilesize_variation"); 23} 24 25echo "*** Done ***\n"; 26?> 27--EXPECT-- 28*** Testing filesize(): usage variations *** 29*** Checking filesize() with different size of files *** 30int(1024) 31int(1025024) 32int(2049024) 33int(3073024) 34int(4097024) 35int(5121024) 36int(6145024) 37int(7169024) 38int(8193024) 39int(9217024) 40*** Done *** 41