mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
Fix #64060: lstat_stat_variation7.phpt fails on certain file systems
Closes GH-6194.
This commit is contained in:
parent
2d234d111a
commit
54435c9b43
6
NEWS
6
NEWS
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user