diff --git a/reference/spl/splfileinfo/getrealpath.xml b/reference/spl/splfileinfo/getrealpath.xml
index 1d11decd14..42f853bfb3 100644
--- a/reference/spl/splfileinfo/getrealpath.xml
+++ b/reference/spl/splfileinfo/getrealpath.xml
@@ -26,7 +26,7 @@
&reftitle.returnvalues;
- Returns the path to the file.
+ Returns the path to the file, or &false; if the file does not exist.
@@ -43,6 +43,12 @@ var_dump($info->getRealPath());
$info = new SplFileInfo('/tmp');
var_dump($info->getRealPath());
+
+$info = new SplFileInfo('/I/Do/Not/Exist');
+var_dump($info->getRealPath());
+
+$info = new SplFileInfo("");
+var_dump($info->getRealPath());
?>
]]>
@@ -51,6 +57,8 @@ var_dump($info->getRealPath());
@@ -62,6 +70,7 @@ string(12) "/private/tmp"
SplFileInfo::isLink
+ realpath