ID: 42540 User updated by: Sjon at react dot nl Reported By: Sjon at react dot nl -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: linux 2.6.22.6 PHP Version: 5.2.4 New Comment:
Yes, definitely. Might this be related to Suhosin-Patch, that the package-creator decided to include? [EMAIL PROTECTED] ~]$ php -v PHP 5.2.4 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 2 2007 12:29:31) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies [EMAIL PROTECTED] ~]$ php -r 'var_dump(disk_total_space("/"));' -dopen_basedir=/ bool(false) [EMAIL PROTECTED] ~]$ php -r 'var_dump(disk_total_space("/"));' -dopen_basedir= float(99996684288) Previous Comments: ------------------------------------------------------------------------ [2007-09-04 09:46:54] [EMAIL PROTECTED] Are you really using PHP 5.2.4? I get this: # php -n -dopen_basedir="/" -r 'var_dump(disk_total_space("/"));' float(76318621696) ------------------------------------------------------------------------ [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