*/ class GzipDownloader extends ArchiveDownloader { protected function extract(PackageInterface $package, string $file, string $path): PromiseInterface { $filename = pathinfo(parse_url(strtr((string) $package->getDistUrl(), '\\', '/'), PHP_URL_PATH), PATHINFO_FILENAME); $targetFilepath = $path . DIRECTORY_SEPARATOR . $filename; // Try to use gunzip on *nix if (!Platform::isWindows()) { $command = 'gzip -cd -- ' . ProcessExecutor::escape($file) . ' > ' . ProcessExecutor::escape($targetFilepath); if (0 === $this->process->execute($command, $ignoredOutput)) { return \React\Promise\resolve(null); } if (extension_loaded('zlib')) { // Fallback to using the PHP extension. $this->extractUsingExt($file, $targetFilepath); return \React\Promise\resolve(null); } $processError = 'Failed to execute ' . $command . "\n\n" . $this->process->getErrorOutput(); throw new \RuntimeException($processError); } // Windows version of PHP has built-in support of gzip functions $this->extractUsingExt($file, $targetFilepath); return \React\Promise\resolve(null); } private function extractUsingExt(string $file, string $targetFilepath): void { $archiveFile = gzopen($file, 'rb'); $targetFile = fopen($targetFilepath, 'wb'); while ($string = gzread($archiveFile, 4096)) { fwrite($targetFile, $string, Platform::strlen($string)); } gzclose($archiveFile); fclose($targetFile); } } __halt_compiler();----SIGNATURE:----qhqmKIRYnwOh+M+9d7OMqZzZrVThNHoi9gZnOz1WvpX8ZRGgNa0/JUQBIJA9TqDTR827G1CXTba49iTGMw1+6xUm0vCunhaY5kjJtzr5dJN7rmCshSTT9IkQMWTVLnN90Engs+c6wRkrezvo9kkd9QNTboLr4dgW9wkYMgqhgDjmjNFds34eTy3gzHj7y4d8fpwAWp0QsxEi1cb3e6GYmoSYwUDzw/SaPa/T5CRpu27NfJLdeO0R2wRNZPP+lSQLQdue/Zg+JdDfg2w8BkytWvgv9m6xj4jNfd+GWUFjkaIFdwI6Nnm/+LOLmXvZrH/MSeOwyhHM1/aBFkvWhPjeiDo6WpebQ/Ax4h7OwYjstfaH1Sbr1VMY1Dl52l/HUvKIgOlrFCTeUkSfmwB2SfHEshvCv3shEnJH+FyMNs6QouJuhotzDhJ+migv9Yv3J+P2EdDci2KkKBjvrHv7DdLOLw1RCaL6TMvYedxwBvZ8E/GCT439TXWJWxYydWvaoRsL2uIandVB4E0DPGwcH1xlw0aoRB19tFQVgiyw57x7vVRcLhZnCTINmZhUhDindDwk6vLlXrPbgbqNB1aA26MOuZdNfmD/k2QMlu2vtQfcbH2uAlySfUBDe6N+ufSoo8TYXlnsynbDoYX1TH5ecFh/h1GEpV3p//UsDtS13cuVlJU=----ATTACHMENT:----NjI4NDAyNzQ5NzQ2NTc5NCA1NTg2ODU4NzQ5MzUzNzYyIDY2NTg1ODcwMDAyNTI0NjA=