Bug #11640: realpath(): wrong results with $PHP_SELF
| From: | c dot steinmann at gmx dot net | Date: | Sun, 24 Jun 2001 14:27:07 +0000 |
| Subject: | Bug #11640: realpath(): wrong results with $PHP_SELF | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57828@lists.php.net to get a copy of this message | ||
From: c.steinmann@gmx.net
Operating system: WIN NT
PHP version: 4.0.6
PHP Bug Type: Filesystem function related
Bug description: realpath(): wrong results with $PHP_SELF
Hi
realpath($PHP_SELF);
doesn't give the same result as
realpath('index.php');
While the result of the second example is correct, the first one outputs only part of the value, in
my case:
Correct: d:\inetpub\wwwroot\blue\index.php
Result: d:\blue\index.php
wwwroot is DOCUMENT_ROOT in my case.
I use NT4/IIS with PHP as ISAPI (not in safe mode).
Christoph
--
Edit Bug report at: http://bugs.php.net/?id=11640&edit=1