Re: include bug in 5.3
| From: | Dmitry Stogov | Date: | Tue, 12 Aug 2008 08:08:30 +0000 |
| Subject: | Re: include bug in 5.3 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39863@lists.php.net to get a copy of this message | ||
__FILE__. "/../../foobar.php" probably could work on Windows/BSD only, but won't work anymore.
The patch is committed.
Thanks. Dmitry.
Rasmus Lerdorf wrote:
That will work fine.Does this change affect code like: include "../file.php";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? -Rasmus