Edit report at http://bugs.php.net/bug.php?id=52065&edit=1

 ID:                 52065
 User updated by:    manuel at mausz dot at
 Reported by:        manuel at mausz dot at
 Summary:            Warning about open_basedir restriction while
                     accessing a file as directory
 Status:             Open
 Type:               Bug
 Package:            Safe Mode/open_basedir
 Operating System:   Unix
 PHP Version:        5.3SVN-2010-06-12 (SVN)
 Block user comment: N

 New Comment:

Can someone please finally take a look at this?


Previous Comments:
------------------------------------------------------------------------
[2010-06-12 14:58:01] manuel at mausz dot at

Description:
------------
fopen_wrappers raise warning about open_basedir restriction in effect
while accessing a file as a directory. This only occurs if the file
exists.



Test script:
---------------
# sapi/cli/php -n -d open_basedir="$(pwd)" -r
'var_dump(is_readable("myfile/doesntexist"));'

# touch myfile

# sapi/cli/php -n -d open_basedir="$(pwd)" -r
'var_dump(is_readable("myfile/doesntexist"));'



Expected result:
----------------
bool(false)



bool(false)

Actual result:
--------------
bool(false)



Warning: is_readable(): open_basedir restriction in effect.
File(myfile/doesntexist) is not within the allowed path(s):
(/home/manuel/php5.3-201006120030) in Command line code on line 1

bool(false)




------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52065&edit=1

Reply via email to