Bug #11640 Updated: realpath(): wrong results with $PHP_SELF
| From: | cardinal@php.net | Date: | Sun, 09 Dec 2001 00:52:39 +0000 |
| Subject: | Bug #11640 Updated: realpath(): wrong results with $PHP_SELF | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73170@lists.php.net to get a copy of this message | ||
ID: 11640
Updated by: cardinal
Reported By: c.steinmann@gmx.net
Old Status: Open
Status: Bogus
Bug Type: Filesystem function related
Operating System: WIN NT
PHP Version: 4.0.6
New Comment:
RTFM. Realpath is for system paths, $PHP_SELF is relative to the web root.
Previous Comments:
------------------------------------------------------------------------
[2001-06-24 10:27:07] c.steinmann@gmx.net
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 this bug report at http://bugs.php.net/?id=11640&edit=1