ID: 44340 User updated by: nahuel dot angelinetti at revues dot org Reported By: nahuel dot angelinetti at revues dot org Status: Bogus Bug Type: Safe Mode/open_basedir Operating System: Debian etch PHP Version: 5.2.5 New Comment:
No, the link IS in the open_basedir. The link created create this link : /www/something/mysite/yourstuff/another/mylink => ../../mytarget.html And not : /www/something/mysite/mylink => ../../mytarget.html And the problem is it works well without open_basedir(and no link is pointing outside the open_basedir). Previous Comments: ------------------------------------------------------------------------ [2008-03-05 23:43:12] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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
