go to bug id or search bugs for
Need add include sys/param.h & sys/mount.h for FreeBSD. Otherwise diskfreespace always return 0 (gcc error: storage size of `buf' isn't known)
This bug is true for 3.0.x & 4.0.x versions.
Add a Patch
Add a Pull Request
--- ../php/functions/filestat.c.orig Wed Nov 29 15:14:40 2000
+++ ../php/functions/filestat.c Wed Nov 29 15:14:17 2000
@@ -35,6 +35,8 @@
The proposed patch won't help, since BSD has no statfs.h and
statvfs.h and PHP for some reason checks for that. Actually,
FreeBSD needs sys/param.h and sys/mount.h, as stated in man,
but not stat[v]fs.h. Maybe somebody of configure wizards can
look at it.
This should be fixed with PHP 4.0.6, please try the
latest release candidate: