From: mpb dot mail at gmail dot com Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Docs question: is __FILE__ === realpath (__FILE__) always true?
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 bug report at http://bugs.php.net/?id=32902&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32902&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32902&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32902&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32902&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32902&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32902&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32902&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32902&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32902&r=support Expected behavior: http://bugs.php.net/fix.php?id=32902&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32902&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32902&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32902&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32902&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32902&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32902&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32902&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32902&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32902&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32902&r=mysqlcfg