Skip to content

Commit dda67d3

Browse files
committed
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.
1 parent 2e97ae9 commit dda67d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/zip/config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (PHP_ZIP != "no") {
1515
}
1616

1717
AC_DEFINE('HAVE_ZIP', 1);
18-
ADD_FLAG("CFLAGS_ZIP", "/D _WIN32 /D HAVE_ENCRYPTION /D HAVE_LIBZIP_VERSION");
18+
ADD_FLAG("CFLAGS_ZIP", "/D _WIN32 /D HAVE_SET_MTIME /D HAVE_ENCRYPTION /D HAVE_LIBZIP_VERSION");
1919
} else {
2020
WARNING("zip not enabled; libraries and headers not found");
2121
}

0 commit comments

Comments
 (0)