svn: /phpdoc/en/trunk/reference/filesystem/functions/ realpath.xml

From: Date: Tue, 07 Jun 2011 14:58:42 +0000
Subject: svn: /phpdoc/en/trunk/reference/filesystem/functions/ realpath.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8221@lists.php.net to get a copy of this message
rquadling Tue, 07 Jun 2011 14:58:42 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=311893 Log: realpath prior to 5.0.0 returned the script directory rather than the current directory when supplied with '' or null paths. There are a few undocumented exceptions (at least on Windows). V4.2.0 operates the same way at V5.0.0+ V4.0.2 - V4.0.3 return False. Changed paths: U phpdoc/en/trunk/reference/filesystem/functions/realpath.xml Modified: phpdoc/en/trunk/reference/filesystem/functions/realpath.xml =================================================================== --- phpdoc/en/trunk/reference/filesystem/functions/realpath.xml 2011-06-07 14:52:20 UTC (rev 311892) +++ phpdoc/en/trunk/reference/filesystem/functions/realpath.xml 2011-06-07 14:58:42 UTC (rev 311893) @@ -29,6 +29,12 @@ <listitem> <para> The path being checked. + <note> + <para> + Whilst a path must be supplied, the value can be blank or &null; + In these cases, the value is interpreted as the current directory. + </para> + </note> </para> </listitem> </varlistentry> @@ -75,6 +81,13 @@ component did not exist. </entry> </row> + <row> + <entry>5.0.0</entry> + <entry> + Prior to this release, a blank or &null; <parameter>path</parameter> would + cause <function>realpath</function> to return the directory name of the script. + </entry> + </row> </tbody> </tgroup> </informaltable>

« previous php.doc.cvs (#8221) next »