ID: 39296
Comment by: phpbugs at thequod dot de
Reported By: judas dot iscariote at gmail dot com
Status: Open
Bug Type: Safe Mode/open_basedir
Operating System: Linux
PHP Version: 5CVS-2006-10-29 (CVS)
New Comment:
Has this changed since 5.1 or 4.x?
Previous Comments:
------------------------------------------------------------------------
[2006-10-29 09:52:52] judas dot iscariote at gmail dot com
Description:
------------
is_readable is raising and open_basedir warrning when the file/dir is
not in open_basedir.
this is not expected or at least is not mentioned in the
documentation.
Reproduce code:
---------------
php -d display_errors=1 -dopen_basedir=`pwd` -r
'var_dump(is_readable("/tmp"));'
Expected result:
----------------
a silent
bool(false)
as stated on the documentation.
Actual result:
--------------
Warning: is_readable(): open_basedir restriction in effect. File(/tmp)
is not within the allowed path(s):
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39296&edit=1