From:             nahuel dot angelinetti at revues dot org
Operating system: Debian etch
PHP version:      5.2.5
PHP Bug Type:     Safe Mode/open_basedir
Bug description:  Openbasedir and symlinks

Description:
------------
When we have an openbasedir like :
/www/something/mysite/

and subdirs like :
/www/something/mysite/yourstuff/another/

When my script is running in /www/something/mysite/ and I want to create a
link in the "another" directory to a file in "mysite" (../../myfile.html)

Reproduce code:
---------------
execute in /www/something/mysite/
<?php

symlink("../../mytarget.html","yourstuff/another/mylink");

?>

my target is in :
/www/something/mysite/mytarget.html

and mylink is in :
www/something/mysite/yourstuff/another/mylink


Expected result:
----------------
Just to create links that source and destination ARE in the openbasedir !

Actual result:
--------------
It say I'm out of the openbasedir, but the link isn't.

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

Reply via email to