diff --git a/functions/filesystem.xml b/functions/filesystem.xml
index d0944e2e87..caf8fe7a07 100644
--- a/functions/filesystem.xml
+++ b/functions/filesystem.xml
@@ -1280,6 +1280,53 @@ fclose ($fd);
+
+
+ fstat
+
+ Get information about a file using an open file pointer.
+
+
+
+ Description
+
+
+ array fstat
+ int fp
+
+
+
+ Gathers the statistics of the file opened by the file
+ pointer fp. This function is similar to the
+ stat function except that it operates
+ on an open file pointer instead of a filename.
+
+
+ Returns an array with the statistics of the file with the
+ following elements:
+
+ device
+ inode
+ number of links
+ user id of owner
+ group id owner
+ device type if inode device *
+ size in bytes
+ time of last access
+ time of last modification
+ time of last change
+ blocksize for filesystem I/O *
+ number of blocks allocated
+
+ * - only valid on systems supporting the st_blksize type--other
+ systems (i.e. Windows) return -1
+
+ The results of this function are cached. See
+ clearstatcache for more details.
+
+
+
+
ftell