public function eof()
    {
        $size = $this->limit;
        if ($size === -1) {
            $size = $this->getSize();
        }
        return ($this->position >= $size);
    }
public function eof()
    {
        $size = $this->limit;
        if ($size === -1) {
            $size = $this->getSize();
        }
        return ($this->position >= $size);
    }
public function eof ( ) { $ size = $ this -> limit ; if ( $ size === - 1 ) { $ size = $ this -> getSize ( ) ; } return ( $ this -> position >= $ size ) ; }
Returns true if the current read position is at the end of the limited
stream

@return boolean
Returns true if the current read position is at the end of the limited stream