Skip to content
Snippets Groups Projects
Unverified Commit 005fa8c6 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #20500 from seamuslee001/php8_zip_test

[php8-compat][NFC] Fix using ZipArchive::open on an empty file
parents f3f02330 500e96a6
Branches
Tags
No related merge requests found
......@@ -116,7 +116,7 @@ class CRM_Utils_Zip {
*/
public static function createTestZip($zipName, $dirs, $files) {
$zip = new ZipArchive();
$res = $zip->open($zipName, ZipArchive::CREATE);
$res = $zip->open($zipName, ZipArchive::OVERWRITE);
if ($res === TRUE) {
foreach ($dirs as $dir) {
if (!$zip->addEmptyDir($dir)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment