gzopen
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Open gz-file
gzopen
(
string $filename
,
string $mode
,
int $use_include_path
=
0
):
resource
|
false
composer/composer
private function
extractUsingExt
(
$file
,
$targetFilepath
)
{
$archiveFile
=
gzopen
(
$file
,
'rb'
);
$targetFile
=
fopen
(
$targetFilepath
,
'wb'
);
while (
$string
=
gzread
(
$archiveFile
,
4096
)) {
fwrite
(
$targetFile
,
$string
,
Platform
::
strlen
(
$string
));
src/Composer/Downloader/GzipDownloader.php