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-----

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

Reply via email to