PHP 4.0 Bug #8027 Updated: diskfreespace always return 0 in FreeBSD
| From: | akss at programmer dot net | Date: | Wed, 29 Nov 2000 09:38:01 +0000 |
| Subject: | PHP 4.0 Bug #8027 Updated: diskfreespace always return 0 in FreeBSD | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-39462@lists.php.net to get a copy of this message | ||
ID: 8027
User Update by: akss@programmer.net
Status: Open
Bug Type: Filesystem function related
Description: diskfreespace always return 0 in FreeBSD
patch:
--- ../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 @@
#include <stdlib.h>
#include <sys/stat.h>
+#include <sys/param.h>
+#include <sys/mount.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
Previous Comments:
---------------------------------------------------------------------------
[2000-11-29 04:33:28] akss@programmer.net
file: php/functions/filestat.c
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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8027