Re: What do you get for ...

From: Date: Tue, 07 Jun 2011 12:04:36 +0000
Subject: Re: What do you get for ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-313435@lists.php.net to get a copy of this message
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

« previous php.general (#313435) next »