From af8204fbf05f186f2ce0e9f71123e1b1b109010b Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Wed, 29 May 2024 14:30:31 +0800 Subject: [PATCH] Add libxml extension wrapper for composer compatibility (#463) * Add libxml extension wrapper for compatibility * Add tests --- config/ext.json | 10 ++++++++++ src/globals/test-extensions.php | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/config/ext.json b/config/ext.json index 2ac53d09..45c71986 100644 --- a/config/ext.json +++ b/config/ext.json @@ -278,6 +278,16 @@ "openssl" ] }, + "libxml": { + "support": { + "BSD": "wip" + }, + "type": "builtin", + "arg-type": "none", + "ext-depends": [ + "xml" + ] + }, "mbregex": { "type": "builtin", "arg-type": "custom", diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index 0dfc8312..f2ccda99 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -11,12 +11,12 @@ declare(strict_types=1); // --------------------------------- edit area --------------------------------- -$zts = true; +$zts = false; // If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`). $extensions = match (PHP_OS_FAMILY) { - 'Linux', 'Darwin' => 'parallel', - 'Windows' => 'mbstring,pdo_sqlite,mbregex,parallel', + 'Linux', 'Darwin' => 'libxml', + 'Windows' => 'mbstring,pdo_sqlite,mbregex,libxml', }; // If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).