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--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--EXPECTF--
27*** Testing filesize(): usage variations ***
28*** Checking filesize() with different size of files ***
29int(%d)
30int(%d)
31int(%d)
32int(%d)
33int(%d)
34int(%d)
35int(%d)
36int(%d)
37int(%d)
38int(%d)
39Done
40