ID: 20423 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Filesystem function related Operating System: Linux 2.4.x PHP Version: 4CVS-2002-11-14 New Comment:
This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-11-14 09:41:06] [EMAIL PROTECTED] > ln -s ../my/home/file.txt test_link.txt; > ls -lia test_link.txt; > { test_link -> ../my/home/file.txt } what you say is right , but IT IS NOT POSSIBLE to create such a link with the last PHP version in your example , the link created by php will be : test_link -> /my/home/file.txt i do not want the ../ to disapear even if it points to the same location ! what i say is not that the link is broken, but the link is no longer relative, i can not move it , or i cannot create it from anywhere ! ------------------------------------------------------------------------ [2002-11-14 09:21:11] [EMAIL PROTECTED] You are wrong. Ex: cd /tmp; echo "TEST DATA" > /my/home/file.txt; ln -s ../my/home/file.txt test_link.txt; ls -lia test_link.txt; { test_link -> ../my/home/file.txt } cd /some/dir; cat /tmp/test_link; { TEST DATA } ------------------------------------------------------------------------ [2002-11-14 09:14:01] [EMAIL PROTECTED] to be more precise, the two links points to te same file only if you are in the same directory than the link which may be not the case ! Anyway , PHP do not have to interpret the relative path i give to transform it in an absolute path ! ------------------------------------------------------------------------ [2002-11-14 09:03:12] [EMAIL PROTECTED] I do not agree with you, It is a bug and a very serious one ! I want to create my symlink with a relative path in order to be able to move then with the rest of my file tree , i do not want PHP to silently resolv the path ! previous version of PHP do not behave like this ! my application does not run with this version of PHP because of this problem, it is not possible with this version to create relative symlinks !!!! ------------------------------------------------------------------------ [2002-11-14 08:39:47] [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 symlink ends up pointing to the same file, not a bug. If have 'foo2.txt -> ../foo.txt' and you do cat /tmp/foo2.txt the filesystem will resolve it to /foo.txt anyway. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/20423 -- Edit this bug report at http://bugs.php.net/?id=20423&edit=1
