1--TEST-- 2Test filesize() function: usage variations - size of files 3--SKIPIF-- 4<?php 5if (substr(PHP_OS, 0, 3) == 'WIN') { 6 die('skip Not valid on 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--EXPECTF-- 28*** Testing filesize(): usage variations *** 29*** Checking filesize() with different size of files *** 30int(%d) 31int(%d) 32int(%d) 33int(%d) 34int(%d) 35int(%d) 36int(%d) 37int(%d) 38int(%d) 39int(%d) 40Done 41