#32902 [Opn->Csd]: Docs question: is __FILE__ === realpath (__FILE__) always true?
| From: | vrana@php.net | Date: | Mon, 02 May 2005 12:42:14 +0000 |
| Subject: | #32902 [Opn->Csd]: Docs question: is __FILE__ === realpath (__FILE__) always true? | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969368155@lists.php.net to get a copy of this message | ||
ID: 32902
Updated by: vrana@php.net
Reported By: mpb dot mail at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
"Since PHP 4.0.2, __FILE__ always contains an absolute path whereas in
older versions it contained relative path under some circumstances."
Previous Comments:
------------------------------------------------------------------------
[2005-04-30 19:38:00] mpb dot mail at gmail dot com
Description:
------------
On this page:
http://www.php.net/manual/en/language.constants.predefined.php
There is a comment:
"mark at trilab dot ch 18-Apr-2003 10:44
Consider using
realpath(__FILE__)
to get absolute paths."
However, it appears that on PHP 5.0.3 on FreeBSD realpath(__FILE__) is
redundant.
It would be nice (for the sake of writing portable code) if the docs
could say which versions of PHP remove symbolic links from __FILE__.
Perhaps they all do? But then why would someone have added the
comment?
Thanks!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32902&edit=1