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--FILE-- 9<?php 10$file_path = __DIR__; 11require($file_path."/file.inc"); 12 13echo "*** Testing filesize(): usage variations ***\n"; 14 15echo "*** Checking filesize() with different size of files ***\n"; 16for($size = 1; $size <10000; $size = $size+1000) 17{ 18 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation"); 19 var_dump( filesize( $file_path."/filesize_variation1.tmp") ); 20 clearstatcache(); 21 delete_files($file_path, 1, "filesize_variation"); 22} 23 24echo "*** Done ***\n"; 25?> 26--EXPECT-- 27*** Testing filesize(): usage variations *** 28*** Checking filesize() with different size of files *** 29int(1024) 30int(1025024) 31int(2049024) 32int(3073024) 33int(4097024) 34int(5121024) 35int(6145024) 36int(7169024) 37int(8193024) 38int(9217024) 39*** Done *** 40