public function stream_tell()
    {
        if (!$this->handle) {
            return false;
        }
        self::restorePrev();
        $position = \ftell($this->handle);
        self::register();
        return $position;
    }