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

 ID:                 52065
 Comment by:         nick at aussiecom dot com
 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
 Private report:     N

 New Comment:

Why hasn't this bug been resolved? It's nearly 2 years old...


Previous Comments:
------------------------------------------------------------------------
[2010-08-11 12:20:11] manuel at mausz dot at

Can someone please finally take a look at this?

------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=52065&edit=1

Reply via email to