> >Another idea would be to try to streamline the normal case for an absolute
> >pathname.  How about doing a readlink() on it.  If that tells us that it
> >is a link, then we know there is something funky and we can do a realpath,
> >otherwise we just assume it is canonical assuming there are no . .. or //
> >in the filename in which case we fall back to a realpath() as well.
> 
> Hmm I'm not sure this would give you what you're looking for. I think it 
> only works if the last element of the path is a symbolic link but I might 
> be wrong. I'm not quite sure of the semantics of readlink().

You are right.  Somehow I had it in my head that readlink() would catch 
any part of the path being a link.

-Rasmus


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to