From b4ed4ea956d80b6733523715b02f93fd7b375f28 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Fri, 12 Apr 2024 01:43:27 +0800 Subject: [PATCH] Add ext yac (#407) * add ext yac * enable yac for windows * enable yac test for windows * correct --- config/ext.json | 8 ++++++++ config/source.json | 10 ++++++++++ src/SPC/builder/extension/yac.php | 26 ++++++++++++++++++++++++++ src/globals/test-extensions.php | 4 ++-- 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 src/SPC/builder/extension/yac.php diff --git a/config/ext.json b/config/ext.json index e74f64af..6d5765e5 100644 --- a/config/ext.json +++ b/config/ext.json @@ -623,6 +623,14 @@ "dom" ] }, + "yac": { + "type": "external", + "source": "yac", + "arg-type-unix": "custom", + "ext-depends-unix": [ + "igbinary" + ] + }, "yaml": { "type": "external", "source": "yaml", diff --git a/config/source.json b/config/source.json index 6ed35f5d..87099347 100644 --- a/config/source.json +++ b/config/source.json @@ -673,6 +673,16 @@ "path": "COPYING" } }, + "yac": { + "type": "url", + "url": "https://pecl.php.net/get/yac", + "path": "php-src/ext/yac", + "filename": "yac.tgz", + "license": { + "type": "file", + "path": "LICENSE" + } + }, "yaml": { "type": "git", "path": "php-src/ext/yaml", diff --git a/src/SPC/builder/extension/yac.php b/src/SPC/builder/extension/yac.php new file mode 100644 index 00000000..a4152e42 --- /dev/null +++ b/src/SPC/builder/extension/yac.php @@ -0,0 +1,26 @@ + 'pgsql,intl,xml,openssl', - 'Windows' => 'mbstring,pdo_sqlite,mbregex,ffi,ds,simdjson', + 'Linux', 'Darwin' => 'yac', + 'Windows' => 'mbstring,pdo_sqlite,mbregex,yac', }; // If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).