1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 13:31:27 +02:00

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.
This commit is contained in:
Christoph M. Becker
2020-01-29 18:19:54 +01:00
parent 2e97ae91c8
commit dda67d3226

View File

@@ -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");
}