]> granicus.if.org Git - php/commitdiff
fix method "eof"
authordanchukas <volk160590@mail.ru>
Thu, 22 Jun 2017 14:25:40 +0000 (17:25 +0300)
committerJoe Watkins <krakjoe@php.net>
Fri, 23 Jun 2017 06:53:00 +0000 (07:53 +0100)
replace "eof" with  "feof"
because:
1) http://php.net/manual/ru/function.feof.php
2) Error: Call to undefined function eof()

ext/spl/internal/splfileobject.inc

index 46b941f69629a2d0d83f97788d1bd98cfa2f87b0..df941c630712e216f22deec6573120f1e90502f7 100644 (file)
@@ -54,7 +54,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
         */
        function eof()
        {
-               return eof($this->fp);
+               return feof($this->fp);
        }
 
        /** increase current line number