Re: include bug in 5.3
| From: | Dmitry Stogov | Date: | Tue, 12 Aug 2008 08:30:09 +0000 |
| Subject: | Re: include bug in 5.3 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39865@lists.php.net to get a copy of this message | ||
realpath(__FILE__ . "/..") doesn't work (returns false) on php-5.2 Linux, however include(__FILE__ . "/../some.php") worked with 5.2.
Thanks. Dmitry.
Stefan Esser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Dmitry,__FILE__. "/../../foobar.php" probably could work on Windows/BSD only, but won't work anymore.this works on Linux and everywhere where GLIBC is used, because GLIBC realpath() supports this nonsense. Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkihRmwACgkQSuF5XhWr2nhv5gCgsRSUMOtc8/PcsugrL3xTNar0 iYIAoIVA4fO5dWwRfxIzHpYfhNFNNuA4 =tAba -----END PGP SIGNATURE-----