From dda67d32265c2a5d751471c64922e8dea2d61290 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 29 Jan 2020 18:19:54 +0100 Subject: [PATCH] Enable ZipArchive::setMtime(Name|Index) on Windows These are enabled on non Windows systems as of zip 1.16.0 with libzip >= 1.0.0. Since Windows builds use at least libzip 1.4.0, we also enable these methods there. --- ext/zip/config.w32 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/zip/config.w32 b/ext/zip/config.w32 index 034543fabd..f27b047b2f 100644 --- a/ext/zip/config.w32 +++ b/ext/zip/config.w32 @@ -15,7 +15,7 @@ if (PHP_ZIP != "no") { } AC_DEFINE('HAVE_ZIP', 1); - ADD_FLAG("CFLAGS_ZIP", "/D _WIN32 /D HAVE_ENCRYPTION /D HAVE_LIBZIP_VERSION"); + ADD_FLAG("CFLAGS_ZIP", "/D _WIN32 /D HAVE_SET_MTIME /D HAVE_ENCRYPTION /D HAVE_LIBZIP_VERSION"); } else { WARNING("zip not enabled; libraries and headers not found"); } -- 2.40.0