diff --git a/Utils/IO/Zip/Gz.php b/Utils/IO/Zip/Gz.php index c0371069c..932bce933 100644 --- a/Utils/IO/Zip/Gz.php +++ b/Utils/IO/Zip/Gz.php @@ -62,7 +62,7 @@ class Gz implements ArchiveInterface return false; } - $gz = \gzopen($source, 'w'); + $gz = \gzopen($source, 'r'); $dest = \fopen($destination, 'w'); if ($gz === false || $dest === false) { return false;