From 5deae744c4becfcf984e2ce4a580e74e218b9289 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Thu, 13 May 2021 08:45:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20zip=20=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/library/Zip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/catcher/library/Zip.php b/extend/catcher/library/Zip.php index e9e983d..5800d20 100644 --- a/extend/catcher/library/Zip.php +++ b/extend/catcher/library/Zip.php @@ -42,7 +42,7 @@ class Zip throw new \Exception("make zip muse set [zip] extension"); } - $this->zipArchive->open($zip, $flags); + $this->zipArchive->open($zip, $flags ? : \ZipArchive::CREATE); return $this; }