From a49ae055998f8138b7247709c3f0db3213e511c4 Mon Sep 17 00:00:00 2001 From: henderkes Date: Mon, 6 Oct 2025 21:00:45 +0200 Subject: [PATCH] use latest zip version for building shared --- config/ext.json | 5 +++-- config/source.json | 10 ++++++++++ src/SPC/builder/extension/zip.php | 17 +++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 src/SPC/builder/extension/zip.php diff --git a/config/ext.json b/config/ext.json index 188aea58..6d84dc3a 100644 --- a/config/ext.json +++ b/config/ext.json @@ -1154,8 +1154,9 @@ "support": { "BSD": "wip" }, - "type": "builtin", - "arg-type": "with-path", + "type": "external", + "source": "ext-zip", + "arg-type": "custom", "arg-type-windows": "enable", "lib-depends-unix": [ "libzip" diff --git a/config/source.json b/config/source.json index 4a0e0fdb..93668df7 100644 --- a/config/source.json +++ b/config/source.json @@ -263,6 +263,16 @@ "path": "LICENSE" } }, + "ext-zip": { + "type": "url", + "url": "https://pecl.php.net/get/zip", + "path": "php-src/ext/zip/latest", + "filename": "ext-zip.tgz", + "license": { + "type": "file", + "path": "LICENSE" + } + }, "ext-zstd": { "type": "git", "path": "php-src/ext/zstd", diff --git a/src/SPC/builder/extension/zip.php b/src/SPC/builder/extension/zip.php new file mode 100644 index 00000000..eab5e40a --- /dev/null +++ b/src/SPC/builder/extension/zip.php @@ -0,0 +1,17 @@ +