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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user