code: public function stream_eof()
      {
          if (!$this->handle) {
              return false;
          }
          self::restorePrev();
          $result = \feof($this->handle);
          self::register();
          return $result;
      }
docs: Tests for end-of-file on a file pointer
  
  @return boolean
  
  @see http://php.net/manual/en/streamwrapper.stream-eof.php