import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-file / filesize_variation1-win32.php
blob9cb11eb63d253ac12c6246a194fa7edcc7331df0
1 <?php
2 /*
3 Prototype : int filesize ( string $filename );
4 Description : Returns the size of the file in bytes, or FALSE
5 (and generates an error of level E_WARNING) in case of an error.
6 */
8 $file_path = dirname(__FILE__);
9 require($file_path."/file.inc");
11 echo "*** Testing filesize(): usage variations ***\n";
13 echo "*** Checking filesize() with different size of files ***\n";
14 for($size = 1; $size <10000; $size = $size+1000)
16 create_files($file_path, 1, "numeric", 0755, $size, "w", "filesize_variation");
17 var_dump( filesize( $file_path."/filesize_variation1.tmp") );
18 clearstatcache();
19 delete_files($file_path, 1, "filesize_variation");
22 echo "*** Done ***\n";