From: info at wiredtek dot info Operating system: Linux PHP version: 5.1.4 PHP Bug Type: *Directory/Filesystem functions Bug description: is_readable(), file_exists() have problem with open_basedir
Description: ------------ the function is_readable() and file_exists() report open_basedir restriction also on files that are inside the open_basedir, showing a warning on the screen, such as: Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/ineluttabile.it/equilibrium/http-docs/skin/equilibrium/css/mozilla/style.css) is not within the allowed path(s): (/usr/share/php/:/var/www/ineluttabile.it/equilibrium/:/tmp/) in /var/www/ineluttabile.it/equilibrium/http-docs/cryolibs/core/core.common.php on line 582 the previous warning tell that file /var/www/ineluttabile.it/equilibrium/http-docs/skin/equilibrium/css/mozilla/style.css is not into the open_basedir, but the dir: /var/www/ineluttabile.it/equilibrium/ is specified into the open_basedir statement, so the warning must not be showed. Investigating more deeply i have noticed that the warning do not happen for 'all' the files involved with the function file_exists() or is_readable(), but only for that files that do not exists. Infact, checking /var/www/ineluttabile.it/equilibrium/http-docs/skin/equilibrium/css/mozilla/style.css the file do not exists, and file_exists() return correctly a FALSE value, but the warning do not have any meaning (IMHO), maybe have a mean for the function is_readable(), but not for file_exists() and however, the file is inside the open_basedir restriction so it is a non sense warning. -- Edit bug report at http://bugs.php.net/?id=37476&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37476&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37476&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37476&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37476&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37476&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37476&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37476&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37476&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37476&r=support Expected behavior: http://bugs.php.net/fix.php?id=37476&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37476&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37476&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37476&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37476&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37476&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37476&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37476&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37476&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37476&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37476&r=mysqlcfg
