Edit report at http://bugs.php.net/bug.php?id=44293&edit=1
ID: 44293
Comment by: bko_san at hotmail dot com
Reported by: mmichel at chez dot com
Summary: realpath does not follow Virtual directory
Status: Bogus
Type: Bug
Package: Filesystem function related
Operating System: Win2003
PHP Version: 5.2.5
Block user comment: N
Private report: N
New Comment:
Surely this is a bug? If PHP doesn't follow Virtual Directories then (as
far as PHP is concerned) the path doesn't exist and should return FALSE
but it returns the PHP exe path on my rig.
Previous Comments:
------------------------------------------------------------------------
[2008-03-11 21:56:30] jani@php.net
Well, there's the problem: realpath() is an OS filesystem function and
doesn't give a damn about any "virtual" stuff IIS might provide. No bug.
------------------------------------------------------------------------
[2008-03-06 12:45:44] mmichel at chez dot com
yes there is.
Elsewhere could be accessed with ../../Elsewhere from the root directory
of the website.
Virtual Directories in IIS try to mimic symlinks, but they are not real
files that can be tracked down like symlinks. This may be the problem
determining the realpath.
------------------------------------------------------------------------
[2008-03-05 09:28:21] jani@php.net
So is there some path in your filesystem called "Elsewhere" which is
relative to the current working directory? If there is, then this is a
bug, but if there isn't, then it's not a bug.
------------------------------------------------------------------------
[2008-03-03 15:03:10] mmichel at chez dot com
> Try adding the trailing slash in the directory..
No change.
------------------------------------------------------------------------
[2008-03-03 14:48:34] jani@php.net
Try adding the trailing slash in the directory..
------------------------------------------------------------------------
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/bug.php?id=44293--
Edit this bug report at http://bugs.php.net/bug.php?id=44293&edit=1