From 3420f6ca42ac56cd8eb472259ed9eb4e63094911 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Thu, 5 Jun 2025 11:33:51 +0700 Subject: [PATCH] add lz4 extension --- config/ext.json | 12 ++++++++++++ config/source.json | 11 +++++++++++ src/SPC/builder/extension/lz4.php | 22 ++++++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 src/SPC/builder/extension/lz4.php diff --git a/config/ext.json b/config/ext.json index 1df91d3b..63e511e4 100644 --- a/config/ext.json +++ b/config/ext.json @@ -323,6 +323,18 @@ "openssl" ] }, + "lz4": { + "support": { + "Windows": "wip", + "BSD": "wip" + }, + "type": "external", + "source": "ext-lz4", + "arg-type": "custom", + "lib-depends": [ + "liblz4" + ] + }, "libxml": { "support": { "BSD": "wip" diff --git a/config/source.json b/config/source.json index a4b25cb8..3cb97433 100644 --- a/config/source.json +++ b/config/source.json @@ -161,6 +161,17 @@ ] } }, + "ext-lz4": { + "type": "ghtagtar", + "repo": "kjdev/php-ext-lz4", + "path": "php-src/ext/lz4", + "license": { + "type": "file", + "path": [ + "LICENSE" + ] + } + }, "ext-memcache": { "type": "url", "url": "https://pecl.php.net/get/memcache", diff --git a/src/SPC/builder/extension/lz4.php b/src/SPC/builder/extension/lz4.php new file mode 100644 index 00000000..9634541d --- /dev/null +++ b/src/SPC/builder/extension/lz4.php @@ -0,0 +1,22 @@ +