#42516 [Opn->Csd]: __FILE__ resolves symlinks - not mentioned in manual
| From: | bjori@php.net | Date: | Sun, 13 Apr 2008 23:46:36 +0000 |
| Subject: | #42516 [Opn->Csd]: __FILE__ resolves symlinks - not mentioned in manual | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-698@lists.php.net to get a copy of this message | ||
ID: 42516
Updated by: bjori@php.net
Reported By: michael at zedeler dot dk
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: 4.4.7
-Assigned To:
+Assigned To: bjori
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.
Previous Comments:
------------------------------------------------------------------------
[2007-09-01 21:02:38] michael at zedeler dot dk
Description:
------------
__FILE__ does not return the path used to invoke the current file, but
resolves symlinks.
This behaviour is extremely problematics, since important information
is thrown away. The web is teeming with postings from people that are
experiencing problems because of this.
In http://bugs.php.net/bug.php?id=37603 this bug
was mentioned and the
response was that it is intended behavior with a reference to the
manual.
The page
http://es.php.net/manual/en/language.constants.predefined.php
is the primary source of information for __FILE__, and it does not
mention resolving symlinks at all.
I'd like if we could have som kind of dialogue about how to solve the
problem, in stead of just having this bug being closed with a "Bogus"
status.
My suggestions are:
1) introduce a new magical constant that behaves as it should.
2) put a parameter in php.ini that changes how __FILE__ behaves.
Reproduce code:
---------------
This is basically a reopening of http://bugs.php.net/bug.php?id=37603
Expected result:
----------------
This is basically a reopening of http://bugs.php.net/bug.php?id=37603
Actual result:
--------------
This is basically a reopening of http://bugs.php.net/bug.php?id=37603
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42516&edit=1