Skip to content

Commit 54435c9

Browse files
committed
Fix #64060: lstat_stat_variation7.phpt fails on certain file systems
Closes GH-6194.
1 parent 2d234d1 commit 54435c9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@ PHP NEWS
66
. Fixed bug #80121 (Null pointer deref if CurlHandle directly instantiated).
77
(Nikita)
88

9-
- SPL.
9+
- SPL:
1010
. Fixed bug #65387 (Circular references in SPL iterators are not garbage
1111
collected). (Nikita)
1212

13+
- Standard:
14+
. Fixed bug #64060 (lstat_stat_variation7.phpt fails on certain file systems).
15+
(M. Voelker, cmb)
16+
1317
01 Oct 2020, PHP 8.0.0rc1
1418

1519
- CLI:

ext/standard/tests/file/lstat_stat_variation7.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $old_stat = stat($file_name);
1818
clearstatcache();
1919
$blksize = PHP_OS_FAMILY === 'Windows' ? 4096 : $old_stat['blksize'];
2020
fwrite($fh, str_repeat("Hello World", $blksize));
21+
fclose($fh);
2122
$new_stat = stat($file_name);
2223

2324
// compare self stats

0 commit comments

Comments
 (0)