We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6cf583 commit 57ef16bCopy full SHA for 57ef16b
NEWS
@@ -2,6 +2,8 @@ PHP NEWS
2
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
3
?? ??? 2022, PHP 8.0.18
4
5
+- Standard:
6
+ . Fixed bug GH-8048 (Force macOS to use statfs). (risner)
7
8
17 Mar 2022, PHP 8.0.17
9
ext/standard/filestat.c
@@ -42,6 +42,16 @@
42
# include <os2.h>
43
#endif
44
45
+#if defined(__APPLE__)
46
+ /*
47
+ Apple statvfs has an interger overflow in libc copying to statvfs.
48
+ cvt_statfs_to_statvfs(struct statfs *from, struct statvfs *to) {
49
+ to->f_blocks = (fsblkcnt_t)from->f_blocks;
50
+ */
51
+# undef HAVE_SYS_STATVFS_H
52
+# undef HAVE_STATVFS
53
+#endif
54
+
55
#if defined(HAVE_SYS_STATVFS_H) && defined(HAVE_STATVFS)
56
# include <sys/statvfs.h>
57
#elif defined(HAVE_SYS_STATFS_H) && defined(HAVE_STATFS)
0 commit comments