src/Tar.php
protected function readbytes($length)
    {
        if ($this->comptype === Archive::COMPRESS_GZIP) {
            return @gzread($this->fh, $length);
        } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
            return @bzread($this->fh, $length);
        } else {
            return @fread($this->fh, $length);
        }
    }
protected function readbytes($length)
    {
        if ($this->comptype === Archive::COMPRESS_GZIP) {
            return @gzread($this->fh, $length);
        } elseif ($this->comptype === Archive::COMPRESS_BZIP) {
            return @bzread($this->fh, $length);
        } else {
            return @fread($this->fh, $length);
        }
    }
protected function readbytes ( $ length ) { if ( $ this -> comptype === Archive :: COMPRESS_GZIP ) { return @ gzread ( $ this -> fh , $ length ) ; } elseif ( $ this -> comptype === Archive :: COMPRESS_BZIP ) { return @ bzread ( $ this -> fh , $ length ) ; } else { return @ fread ( $ this -> fh , $ length ) ; } }
Read from the open file pointer

@param int $length bytes to read
@return string
Read from the open file pointer