Skip to content

Commit 4f478af

Browse files
committed
Fix #80825: ZipArchive::isCompressionMethodSupported does not exist
`HAVE_METHOD_SUPPORTED` should have been defined after we updated to libzip 1.7.1 months ago.
1 parent 303a4ae commit 4f478af

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ PHP NEWS
2727
. Fixed bug #78719 (http wrapper silently ignores long Location headers).
2828
(cmb)
2929

30+
- Zip:
31+
. Fixed bug #80825 (ZipArchive::isCompressionMethodSupported does not exist).
32+
(cmb)
33+
3034
18 Feb 2021, PHP 8.0.3
3135

3236
- Core:

ext/zip/config.w32

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

1818
AC_DEFINE('HAVE_ZIP', 1);
19-
ADD_FLAG("CFLAGS_ZIP", "/D _WIN32 /D HAVE_SET_MTIME /D HAVE_ENCRYPTION /D HAVE_LIBZIP_VERSION /D HAVE_PROGRESS_CALLBACK /D HAVE_CANCEL_CALLBACK /D LZMA_API_STATIC");
19+
ADD_FLAG("CFLAGS_ZIP", "/D _WIN32 /D HAVE_SET_MTIME /D HAVE_ENCRYPTION /D HAVE_LIBZIP_VERSION /D HAVE_PROGRESS_CALLBACK /D HAVE_CANCEL_CALLBACK /D HAVE_METHOD_SUPPORTED /D LZMA_API_STATIC");
2020
} else {
2121
WARNING("zip not enabled; libraries and headers not found");
2222
}

0 commit comments

Comments
 (0)