On Tue, Aug 12, 2008 at 09:56, Rasmus Lerdorf <[EMAIL PROTECTED]> wrote:
>> I was thinking along the same line. I bet some people have been lazy
>> and used __FILE__. "/../../foobar.php".
>
> That will not work.  And that is moronic code anyway.  Why wouldn't they use
> __DIR__ there?

Because it didn't exist until 5.3 (or 5.2.7, don't remember) and they
are to lazy to do dirname(__FILE__)...

It is silly, but still an "edge case" we need to add to the "backwards
compatibility breaks" document :)

-Hannes

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to