From 2beecee2194d8c70ded2f69a1220f702707439f5 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Tue, 17 Sep 2024 22:34:57 +0800 Subject: [PATCH] Add extension msgpack support (#543) --- config/ext.json | 9 +++++++++ config/source.json | 10 ++++++++++ src/globals/ext-tests/msgpack.php | 7 +++++++ src/globals/test-extensions.php | 4 ++-- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 src/globals/ext-tests/msgpack.php diff --git a/config/ext.json b/config/ext.json index b80402362..05ef27ee9 100644 --- a/config/ext.json +++ b/config/ext.json @@ -360,6 +360,15 @@ "zlib" ] }, + "msgpack": { + "support": { + "BSD": "wip" + }, + "type": "external", + "source": "msgpack", + "arg-type-unix": "with", + "arg-type-win": "enable" + }, "mysqli": { "type": "builtin", "arg-type": "with", diff --git a/config/source.json b/config/source.json index e92a7daf1..5e3425858 100644 --- a/config/source.json +++ b/config/source.json @@ -514,6 +514,16 @@ "path": "LICENSE" } }, + "msgpack": { + "type": "url", + "url": "https://pecl.php.net/get/msgpack", + "path": "php-src/ext/msgpack", + "filename": "msgpack.tgz", + "license": { + "type": "file", + "path": "LICENSE" + } + }, "ncurses": { "type": "filelist", "url": "https://ftp.gnu.org/pub/gnu/ncurses/", diff --git a/src/globals/ext-tests/msgpack.php b/src/globals/ext-tests/msgpack.php new file mode 100644 index 000000000..2c6973fa6 --- /dev/null +++ b/src/globals/ext-tests/msgpack.php @@ -0,0 +1,7 @@ + 'redis,igbinary', - 'Windows' => 'redis,igbinary', + 'Linux', 'Darwin' => 'redis,igbinary,msgpack', + 'Windows' => 'redis,igbinary,msgpack', }; // If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).