Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Open gz-file
<?php gzopen(string $filename, string $mode, int $use_include_path = 0): resource|false
<?php     private function extractUsingExt($file, $targetFilepath)

    {

        $archiveFile = gzopen($file, 'rb');

        $targetFile = fopen($targetFilepath, 'wb');

        while ($string = gzread($archiveFile, 4096)) {

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