__FILE__. "/../../foobar.php" probably could work on Windows/BSD only, but won't work anymore.

The patch is committed.

Thanks. Dmitry.

Rasmus Lerdorf wrote:
Does this change affect code like:

include "../file.php";

That will work fine.

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

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

Reply via email to