RE: What do you get for ...

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

 



>-----Original Message-----
>From: Richard Quadling [mailto:rquadling@xxxxxxxxx] 
>Sent: 07 June 2011 11:35
>To: PHP General list
>Subject:  What do you get for ...
>
>Hi.
>
>What do you get for ...
>
>php -r "var_dump(realpath(null));"
>
>I'm wondering if the result should be a boolean false.
>
>But I'm getting very different results for different versions of PHP
>for Windows.
>
>For PHP5+ (upto lastest 5.3.7-dev), the output is always the same as getcwd()
>

[snip]

I get the following in Win7 Pro x64 SP1 running PHP 5.3.6:


--- BEGIN OUTPUT ---
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

D:\>php -r "var_dump(realpath(null));"
string(3) "D:\"

D:\>

-- END OUTPUT ---

HTH
J


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