From:             david at dfoerster dot de
Operating system: Linux
PHP version:      5.2.5
PHP Bug Type:     Safe Mode/open_basedir
Bug description:  open_basedir prohibits creating a new file within allowed path

Description:
------------
When trying to create a new file within a symlinked document root,
open_basedir raises an error allthough the access should be granted.

The error message is obviously wrong:

open_basedir restriction in effect. File(/somepath/somefile) is not within
the allowed path(s): (/somepath)

(Because the file _is_ in the allowed path.)

Reproduce code:
---------------
Create a directory and a symlink to it (both on the same level).
Setup an Apache host with the document root and open_basedir set to the
symlink.
Create a PHP script within the symlink-directory trying to touch a file in
the symlinked directory using the absolute path.

Expected result:
----------------
The file gets created as it's location is within open_basedir

Actual result:
--------------
An error message stating that the file /somesymlinkedpath/file is not
within the allowed path /somesymlinkedpath.

-- 
Edit bug report at http://bugs.php.net/?id=44391&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44391&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44391&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44391&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44391&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44391&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44391&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44391&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44391&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44391&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44391&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44391&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44391&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44391&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44391&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44391&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44391&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44391&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44391&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44391&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44391&r=mysqlcfg

Reply via email to