gzclose
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Close an open gz-file pointer
gzclose
(
resource $stream
):
bool
composer/composer
while (
$string
=
gzread
(
$archiveFile
,
4096
)) {
fwrite
(
$targetFile
,
$string
,
Platform
::
strlen
(
$string
));
}
gzclose
(
$archiveFile
);
fclose
(
$targetFile
);
}
}
src/Composer/Downloader/GzipDownloader.php