On Tuesday, June 7, 2011, Richard Quadling wrote:

> What do you get for ...

> php -r "var_dump(realpath(null));"

PHP 5.3.5-1ubuntu7.2 on Ubuntu 11.04 kernel 2.6.18 returns the same
value as __DIR__

However, PHP 5.1.6 on CentOS 5.6 kernel 2.6.18 returns bool(false).
Doing php -r "var_dump(__DIR__);" on this machine shows that __DIR__
is undefined. Executing both commands in an intranet-visible, php
script shows the same thing.

HTH,

-- 
Geoff


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to