Purpose: detects end-of-file on a file-type stream
The stream must have been opened with fopen() or fsockopen() -- implying that it won't work with other kinds of streams, e.g. those opened with ssh_exec() (which seems to be the case; always returns FALSE).