RE: [PHP] What do you get for ...

From: Date: Tue, 07 Jun 2011 10:42:21 +0000
Subject: RE: [PHP] What do you get for ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-313428@lists.php.net to get a copy of this message
>-----Original Message----- >From: Richard Quadling [mailto:rquadling@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

« previous php.general (#313428) next »