Re: What do you get for ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux