i ​added a check on the returned file handle from fopen() before attempting to read it via feof(). this is to prevent infinite loops on feof() when reading from an invalid file pointer. see the warnings documented here: http://php.net/manual/en/function.feof.php#refsect1-function.feof-notes

-- 
Provided by anonymous 52007 (stefan.topfstedt@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335436 c90b9560-bf6c-de11-be94-00142212c4b1