Skip to content

Commit 1a739c5

Browse files
authored
Attempt to fix Gzip failures. (#341)
* Attempt to fix Gzip failures. * StyleCI complaints.
1 parent ef59893 commit 1a739c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Archive/Adapter/Gzip.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function compress($files, string $destination = '', bool $overwrite = fal
8484
}
8585

8686
$filename = $destination;
87-
if ($outfile = gzopen($filename, $mode)) {
87+
if ($outfile = gzopen($filename, 'wb'.$mode)) {
8888
if ($infile = fopen($files, 'rb')) {
8989
while (!feof($infile)) {
9090
gzwrite($outfile, fread($infile, $this->BufferSize));

0 commit comments

Comments
 (0)