[PHP-DEV] PHP 4.0 Bug #8027 Updated: diskfreespace always return 0 in FreeBSD From: akss <email protected>
Date: 11/29/00

ID: 8027
User Update by: akss <email protected>
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 <email protected>
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

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>