Patch libzip-fix-have-method-supported-detection.diff for Zip Related Bug #80351
Patch version 2020-11-12 08:47 UTC
Return to Bug #80351 |
Download this patch
Patch Revisions:
Developer: nvizovitin@plesk.com
# This fixes detection of zip_compression_method_supported() and zip_encryption_method_supported()
# functions availability in libzip. They are publicly available since libzip 1.7.0,
# however the first one was privately available before (at least in 1.3.2), so its
# detection via AC_CHECK_LIB was successfull where it should not have been.
#
# This fixes runtime errors like:
# symbol lookup error: .../php/modules/zip.so: undefined symbol: zip_encryption_method_supported
# which happen on attempts to use ZipArchive::isEncryptionMethodSupported() or phpinfo().
--- ./ext/zip/config.m4.orig 2020-11-12 13:49:51.380974285 +0700
+++ ./ext/zip/config.m4 2020-11-12 13:50:21.215974269 +0700
@@ -51,7 +51,7 @@
$LIBZIP_LIBS
])
- PHP_CHECK_LIBRARY(zip, zip_compression_method_supported,
+ PHP_CHECK_LIBRARY(zip, zip_encryption_method_supported,
[
AC_DEFINE(HAVE_METHOD_SUPPORTED, 1, [Libzip >= 1.7.0 with zip_*_method_supported functions])
], [
|