Fix #64060: lstat_stat_variation7.phpt fails on certain file systems

Closes GH-6194.
This commit is contained in:
Christoph M. Becker 2020-09-23 15:34:17 +02:00
parent 2d234d111a
commit 54435c9b43
2 changed files with 6 additions and 1 deletions

6
NEWS
View File

@ -6,10 +6,14 @@ PHP NEWS
. Fixed bug #80121 (Null pointer deref if CurlHandle directly instantiated).
(Nikita)
- SPL.
- SPL:
. Fixed bug #65387 (Circular references in SPL iterators are not garbage
collected). (Nikita)
- Standard:
. Fixed bug #64060 (lstat_stat_variation7.phpt fails on certain file systems).
(M. Voelker, cmb)
01 Oct 2020, PHP 8.0.0rc1
- CLI:

View File

@ -18,6 +18,7 @@ $old_stat = stat($file_name);
clearstatcache();
$blksize = PHP_OS_FAMILY === 'Windows' ? 4096 : $old_stat['blksize'];
fwrite($fh, str_repeat("Hello World", $blksize));
fclose($fh);
$new_stat = stat($file_name);
// compare self stats