public function stream_eof()
    {
        if (!$this->handle) {
            return false;
        }
        self::restorePrev();
        $result = \feof($this->handle);
        self::register();
        return $result;
    }