From 5ca36de9639a35ba034a93205f4664471f3aae77 Mon Sep 17 00:00:00 2001 From: Richard Quadling Date: Tue, 7 Jun 2011 14:58:42 +0000 Subject: [PATCH] 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 --- reference/filesystem/functions/realpath.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/reference/filesystem/functions/realpath.xml b/reference/filesystem/functions/realpath.xml index d354d2c278..793ad1cfa7 100644 --- a/reference/filesystem/functions/realpath.xml +++ b/reference/filesystem/functions/realpath.xml @@ -29,6 +29,12 @@ The path being checked. + + + Whilst a path must be supplied, the value can be blank or &null; + In these cases, the value is interpreted as the current directory. + + @@ -75,6 +81,13 @@ component did not exist. + + 5.0.0 + + Prior to this release, a blank or &null; path would + cause realpath to return the directory name of the script. + +