summaryrefslogtreecommitdiff
path: root/ext/zip
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-01-29 18:19:54 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-01-29 18:19:54 +0100
commitdda67d32265c2a5d751471c64922e8dea2d61290 (patch)
tree5b23154e52784b6e07d8490944036ee9b43a2bda /ext/zip
parent2e97ae91c8ac404be00050eef414b555aba45a1c (diff)
downloadphp-git-dda67d32265c2a5d751471c64922e8dea2d61290.tar.gz
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.
Diffstat (limited to 'ext/zip')
-rw-r--r--ext/zip/config.w322
1 files changed, 1 insertions, 1 deletions
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");
}