Bug #14745: ulink handles relative links oddly
| From: | caldwell at primes dot utm dot edu | Date: | Fri, 28 Dec 2001 19:56:22 +0000 |
| Subject: | Bug #14745: ulink handles relative links oddly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-75219@lists.php.net to get a copy of this message | ||
From: caldwell@primes.utm.edu
Operating system: Linux 2.4.4-ac6
PHP version: 4.1.1
PHP Bug Type: Filesystem function related
Bug description: ulink handles relative links oddly
I am using the relative path "../includes/gifs/" in a script "upload.php".
This script is in a directory called
glossary/admin, and I have a soft link to it in one called
curios/admin.
When I access it from curios/admin (over the web), the command dir works
fine with ""../includes/gifs/" and returns the listing of
curios/includes/gifs/. But when
the same script from the same URL executes unlink on
"../includes/gifs/up.gif" it complains
Warning: Unlink failed (No such file or directory) in
/home/caldwell/public_html/glossary/admin/upload.php on line 62
In short: dir(../*) seems to be relative to the script
soft link, and unlink(../*) seems to be relative to the soft link's
target.
Configure line:
'./configure' '--with-mysql=/usr/local'
'--with-apache=../apache_1.3.22'
'--enable-track-vars' '--with-posix' '--enable-sockets'
'--with-gmp'
'--with-db2' '--with-ndbm'
--
Edit bug report at: http://bugs.php.net/?id=14745&edit=1