http://bugs.php.net/bug.php?id=46260&thanks=4
My bug report on the __FILE__ symlink stupidity in PHP.
http://bugs.php.net/bug.php?id=38790
The __FILE__ constant contains the path of the currently executing (as in included) file *after* symlinks have been resolved. This bug suggests it should not resolve symlinks, or should provide an option to change the behaviour. Response was no!