Re: include bug in 5.3
| From: | Hannes Magnusson | Date: | Tue, 12 Aug 2008 10:09:53 +0000 |
| Subject: | Re: include bug in 5.3 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39869@lists.php.net to get a copy of this message | ||
On Tue, Aug 12, 2008 at 09:56, Rasmus Lerdorf <rasmus@lerdorf.com> 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