]> granicus.if.org Git - php/commitdiff
Make sure we are writing more data then the block size
authorHannes Magnusson <bjori@php.net>
Sun, 5 Jun 2011 12:07:11 +0000 (12:07 +0000)
committerHannes Magnusson <bjori@php.net>
Sun, 5 Jun 2011 12:07:11 +0000 (12:07 +0000)
ext/standard/tests/file/lstat_stat_variation7.phpt

index f950c8fe6bfcbd68e367736ea27d7912341cb0f8..2296193c91ca8c46e0109c493b4ba8c15093d0bd 100644 (file)
@@ -29,7 +29,7 @@ echo "*** Testing stat() on file after data is written in it ***\n";
 $fh = fopen($file_name,"w");
 $old_stat = stat($file_name);
 clearstatcache();
-fwrite($fh, (binary)"Hello World");
+fwrite($fh, str_repeat((binary)"Hello World", $old_stat['blksize']));
 $new_stat = stat($file_name);
 
 // compare self stats