#44340 [Opn->Bgs]: Openbasedir and symlinks

From: Date: Wed, 05 Mar 2008 23:43:12 +0000
Subject: #44340 [Opn->Bgs]: Openbasedir and symlinks
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122985@lists.php.net to get a copy of this message
ID: 44340 Updated by: iliaa@php.net Reported By: nahuel dot angelinetti at revues dot org -Status: Open +Status: Bogus Bug Type: Safe Mode/open_basedir Operating System: Debian etch PHP Version: 5.2.5 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php The link itself is outside of the allowable dir, hence the error. Previous Comments: ------------------------------------------------------------------------ [2008-03-05 16:44:38] nahuel dot angelinetti at revues dot org 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 this bug report at http://bugs.php.net/?id=44340&edit=1

« previous php.bugs (#122985) next »