ID: 32902 Updated by: [EMAIL PROTECTED] 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