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.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@311893 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Richard Quadling 2011-06-07 14:58:42 +00:00
parent aafc074ad8
commit 5ca36de963

View file

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