From: Antony Dovgal Date: Thu, 8 Jan 2009 21:53:36 +0000 (+0000) Subject: fix test X-Git-Tag: php-5.4.0alpha1~191^2~4586 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e51b9529e0a995bd8621b75d3668b7823a63ff1;p=php fix test use bigger file to be able to see the difference --- diff --git a/ext/standard/tests/file/disk_free_space_basic.phpt b/ext/standard/tests/file/disk_free_space_basic.phpt index f8684e92a9..7ea8d36153 100644 --- a/ext/standard/tests/file/disk_free_space_basic.phpt +++ b/ext/standard/tests/file/disk_free_space_basic.phpt @@ -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";