On the PHP 10.0 Blog today, Stas has a suggestion that might help out developers that use the combination "dirname(__FILE__)" to get the working directory. He proposes something like __FILEDIR__ to replace it and to help make code cleaner.
The reason is simple - libraries want to include files relative to library top directory, and do not want to count on include path. And relative include resolution rules in PHP not clear to all, so people prefer to be sure. The downside here is that this expression is dynamic - executed at run-time. Meaning it's slower and less toolable and also makes a bad habit of putting dynamic things into include (which is not a problem here, since itâ€™s "static dynamic" thing, but still a bad habit).
His suggestion has merit, and, according to the comments on the post, the reception seems like it would be positive.