>-----Original Message-----
>From: Richard Quadling [mailto:rquadl...@gmail.com] 
>Sent: 07 June 2011 11:35
>To: PHP General list
>Subject: [PHP] 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

Reply via email to