From: Hannes Magnusson Date: Sun, 5 Jun 2011 12:07:11 +0000 (+0000) Subject: Make sure we are writing more data then the block size X-Git-Tag: php-5.4.0alpha1~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=513faa54bb8162f4b6625cce045b0f4f1443855e;p=php Make sure we are writing more data then the block size --- diff --git a/ext/standard/tests/file/lstat_stat_variation7.phpt b/ext/standard/tests/file/lstat_stat_variation7.phpt index f950c8fe6b..2296193c91 100644 --- a/ext/standard/tests/file/lstat_stat_variation7.phpt +++ b/ext/standard/tests/file/lstat_stat_variation7.phpt @@ -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