]> granicus.if.org Git - php/commitdiff
fix test
authorAntony Dovgal <tony2001@php.net>
Thu, 8 Jan 2009 21:53:36 +0000 (21:53 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 8 Jan 2009 21:53:36 +0000 (21:53 +0000)
use bigger file to be able to see the difference

ext/standard/tests/file/disk_free_space_basic.phpt

index f8684e92a9b68bbae15983f1a63ef647321e49ed..7ea8d36153f06272da53bb8a7cd077958d546c6c 100644 (file)
@@ -25,8 +25,8 @@ $space1 =  disk_free_space($file_path.$dir);
 var_dump( $space1 ); 
 
 $fh = fopen($file_path.$dir."/disk_free_space.tmp", "a");
-for( $i=1; $i<=1000; $i++)
-fwrite($fh, (binary)"x");
+$data = str_repeat("x", 4096);
+fwrite($fh, (binary)$data);
 fclose($fh);
 
 echo "\n Free Space after writing to a file\n";