diff --git a/functions/dir.xml b/functions/dir.xml index b242204d4b..a8ca29a944 100644 --- a/functions/dir.xml +++ b/functions/dir.xml @@ -11,7 +11,7 @@ Description - int chroot + bool chroot string directory @@ -40,7 +40,7 @@ Description - int chdir + bool chdir string directory @@ -100,7 +100,7 @@ $d->close(); void closedir - int dir_handle + resource dir_handle @@ -139,7 +139,7 @@ $d->close(); Description - int opendir + resource opendir string path @@ -186,7 +186,7 @@ if ($dir = @opendir("/tmp")) { string readdir - int dir_handle + resource dir_handle @@ -209,12 +209,14 @@ closedir($handle); - Note that readdir will return the . and - .. entries. If you don't want these, simply strip them out: + Note that readdir will return the . + and + .. entries. If you don't want these, simply strip + them out: - List all files in the current directory and strip out . and - .. + List all files in the current directory and strip out <literal>.</literal> + and <literal>..</literal> <?php @@ -242,7 +244,7 @@ closedir($handle); void rewinddir - int dir_handle + resource dir_handle