From: Sjon at react dot nl
Operating system: linux 2.6.22.6
PHP version: 5.2.4
PHP Bug Type: Filesystem function related
Bug description: open_basedir=/ makes disk_total_space("/") return false
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 bug report at http://bugs.php.net/?id=42540&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42540&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42540&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42540&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42540&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42540&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42540&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42540&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42540&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42540&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42540&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42540&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42540&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42540&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42540&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42540&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42540&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42540&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42540&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42540&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42540&r=mysqlcfg