projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03604cc
)
[php8-compat][NFC] Fix using ZipArchive::open on an empty file
author
Seamus Lee
<seamuslee001@gmail.com>
Fri, 4 Jun 2021 07:14:38 +0000
(17:14 +1000)
committer
Seamus Lee
<seamuslee001@gmail.com>
Fri, 4 Jun 2021 07:14:38 +0000
(17:14 +1000)
CRM/Utils/Zip.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/Zip.php
b/CRM/Utils/Zip.php
index edcef5a720ae5f752e7964e1b57f7bebd4259ae6..a7dd2440722b0e4f5f088b43bc6a9bcfcb842406 100644
(file)
--- a/
CRM/Utils/Zip.php
+++ b/
CRM/Utils/Zip.php
@@
-116,7
+116,7
@@
class CRM_Utils_Zip {
*/
public static function createTestZip($zipName, $dirs, $files) {
$zip = new ZipArchive();
- $res = $zip->open($zipName, ZipArchive::
CREA
TE);
+ $res = $zip->open($zipName, ZipArchive::
OVERWRI
TE);
if ($res === TRUE) {
foreach ($dirs as $dir) {
if (!$zip->addEmptyDir($dir)) {