Re: What do you get for ...

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

 



On Tue, 2011-06-07 at 16:09 +0300, Vitalii Demianets wrote:
> On Tuesday 07 June 2011 13:35:06 Richard Quadling wrote:
> > Hi.
> >
> > What do you get for ...
> >
> > php -r "var_dump(realpath(null));"
> >
> 
> 1.
> PHP 5.3.6 @ Gentoo Linux(x86_64)
> 
> tmp $ php -r "print getcwd();"
> /var/tmp
> 
> tmp $ php -r "var_dump(realpath(null));"
> string(8) "/var/tmp"
> 
> 2.
> PHP 5.2.14 @ Linux(ARM) 
> 
> tmp $ php -r "print getcwd();"
> /var/tmp
> 
> tmp $ php -r "var_dump(realpath(null));"
> string(8) "/var/tmp"
> 
> -- 
> Vitalii
> 

sstaples@webdev01:~$ php -v
PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan  6 2010
22:41:56) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
sstaples@webdev01:~$ 

sstaples@webdev01:~$ pwd
/home/sstaples
sstaples@webdev01:~$ php -r "var_dump(realpath(null));"
string(14) "/home/sstaples"
sstaples@webdev01:~$ 

I am running Ubuntu 9.10

Steve.


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