From 34d8e472676d83a2622ee00dfe8679ed2e4baccb Mon Sep 17 00:00:00 2001 From: Weilin Du Date: Fri, 16 Oct 2026 01:42:30 +0800 Subject: [PATCH] ext/zip: Exclude broken libzip 1.12 --- NEWS | 2 ++ ext/zip/config.m4 | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 4a3383c25a4f..7d005e343f61 100644 --- a/NEWS +++ b/NEWS @@ -180,6 +180,8 @@ PHP NEWS tidy::repairFile() rejecting null for $encoding. (lacatoire) - Zip: + . Excluded libzip 1.12.0 due to a regression preventing additions and + replacements in torrentzip archives. (Weilin Du) . Fixed use-after-free when re-entering ZipArchive during destruction or a close warning, and rejected opening streams while closing. (jvoisin) . Fixed a use-after-free when a ZipArchive method that modifies the archive diff --git a/ext/zip/config.m4 b/ext/zip/config.m4 index 643397c19721..d0fbb4d856d8 100644 --- a/ext/zip/config.m4 +++ b/ext/zip/config.m4 @@ -4,7 +4,7 @@ PHP_ARG_WITH([zip], [Include Zip read/write support])]) if test "$PHP_ZIP" != "no"; then - PKG_CHECK_MODULES([LIBZIP], [libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0]) + PKG_CHECK_MODULES([LIBZIP], [libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0 libzip != 1.12 libzip != 1.12.0]) PHP_EVAL_INCLINE([$LIBZIP_CFLAGS]) PHP_EVAL_LIBLINE([$LIBZIP_LIBS], [ZIP_SHARED_LIBADD])