ID: 42540 Updated by: [EMAIL PROTECTED] Reported By: Sjon at react dot nl -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: linux 2.6.22.6 PHP Version: 5.2.4 New Comment:
Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. Please test with a snapshot, without suhosin and other patches. Neither Jani nor me can reproduce it. Previous Comments: ------------------------------------------------------------------------ [2007-09-04 10:02:30] Sjon at react dot nl 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) ------------------------------------------------------------------------ [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