PHP 4.0 Bug #5935: realpath() contains '/./'
| From: | php-bugs at bjoernsworld dot de | Date: | Thu, 03 Aug 2000 05:26:54 +0000 |
| Subject: | PHP 4.0 Bug #5935: realpath() contains '/./' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27511@lists.php.net to get a copy of this message | ||
From: php-bugs@bjoernsworld.de
Operating system: Winnt 4.0 SP 4
PHP version: 4.0.1pl2
PHP Bug Type: Misbehaving function
Bug description: realpath() contains '/./'
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./
[...]