We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef59893 commit 1a739c5Copy full SHA for 1a739c5
1 file changed
src/Archive/Adapter/Gzip.php
@@ -84,7 +84,7 @@ public function compress($files, string $destination = '', bool $overwrite = fal
84
}
85
86
$filename = $destination;
87
- if ($outfile = gzopen($filename, $mode)) {
+ if ($outfile = gzopen($filename, 'wb'.$mode)) {
88
if ($infile = fopen($files, 'rb')) {
89
while (!feof($infile)) {
90
gzwrite($outfile, fread($infile, $this->BufferSize));
0 commit comments