]> granicus.if.org Git - php/commitdiff
Enable ZipArchive::setMtime(Name|Index) on Windows
authorChristoph M. Becker <cmbecker69@gmx.de>
Wed, 29 Jan 2020 17:19:54 +0000 (18:19 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 29 Jan 2020 17:19:54 +0000 (18:19 +0100)
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

index 034543fabd8cf9207f477eac509e29d799b4adb4..f27b047b2f49a81ac959c68d8706723b65da22c7 100644 (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");
        }