ID: 42540
Updated by: [EMAIL PROTECTED]
Reported By: Sjon at react dot nl
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: linux 2.6.22.6
PHP Version: 5.2.4
New Comment:
Are you really using PHP 5.2.4? I get this:
# php -n -dopen_basedir="/" -r 'var_dump(disk_total_space("/"));'
float(76318621696)
Previous Comments:
------------------------------------------------------------------------
[2007-09-04 08:50:57] Sjon at react dot nl
Description:
------------
when open_basedir is set to / disk_total_space('/') returns false; even
though the documentation states:
if set, limits all file operations to the defined directory and
below
Shouldn't 'open_basedir=/' behave like 'open_basedir=' ?
Reproduce code:
---------------
[EMAIL PROTECTED] ~]$ php -r 'var_dump(disk_total_space("/"));' -d
open_basedir=
float(99999830016)
[EMAIL PROTECTED] ~]$ php -r 'var_dump(disk_total_space("/"));' -d
open_basedir=/
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42540&edit=1