Logo

Zlib Functions

deflate_add deflate_init gzclose gzcompress gzdecode gzdeflate gzencode gzeof gzfile gzgetc gzgets gzinflate gzopen gzpassthru gzputs gzread gzrewind gzseek gztell gzuncompress gzwrite inflate_add inflate_get_read_len inflate_get_status inflate_init ob_gzhandler readgzfile zlib_decode zlib_encode zlib_get_coding_type

gzclose

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Close an open gz-file pointer
<?php gzclose(resource $stream): bool
Logo composer/composer composer/composer
<?php         while ($string = gzread($archiveFile, 4096)) {

            fwrite($targetFile, $string, Platform::strlen($string));

        }

        gzclose($archiveFile);

        fclose($targetFile);

    }

}
src/Composer/Downloader/GzipDownloader.php