|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-06 18:33 UTC] stas@php.net
[2000-08-06 18:34 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
The manual say for realpath(): "[...]The resulting path will have no symbolic link, '/./' or '/../' components." This is not true for '.' and '..': [...] D:\dev\php\http\tests>php <? print realpath('./'); ^Z X-Powered-By: PHP/4.0.1pl2 Content-type: text/html D:\dev\php\http\tests\./ [...] using '..' even breaks the path: [...] D:\dev\php\http\tests>php <? print realpath(".."); ^Z X-Powered-By: PHP/4.0.1pl2 Content-type: text/html D:\dev\php\http./ [...]