From 9a681a9fa6249130bddcb7d342761f389c8d49ef Mon Sep 17 00:00:00 2001 From: henderkes Date: Sat, 27 Dec 2025 21:19:31 +0100 Subject: [PATCH] add mariadb mysqlnd plugins --- config/ext.json | 30 +++++++++++++++++++ config/source.json | 18 +++++++++++ src/SPC/builder/extension/mysqlnd_ed25519.php | 22 ++++++++++++++ src/SPC/builder/extension/mysqlnd_parsec.php | 22 ++++++++++++++ src/globals/test-extensions.php | 10 +++---- 5 files changed, 97 insertions(+), 5 deletions(-) create mode 100644 src/SPC/builder/extension/mysqlnd_ed25519.php create mode 100644 src/SPC/builder/extension/mysqlnd_parsec.php diff --git a/config/ext.json b/config/ext.json index d3fd2aa2..78a0ea38 100644 --- a/config/ext.json +++ b/config/ext.json @@ -487,6 +487,36 @@ "zlib" ] }, + "mysqlnd_ed25519": { + "type": "external", + "source": "mysqlnd_ed25519", + "arg-type": "enable", + "target": [ + "shared" + ], + "ext-depends": [ + "mysqlnd" + ], + "lib-depends": [ + "libsodium", + "openssl" + ] + }, + "mysqlnd_parsec": { + "type": "external", + "source": "mysqlnd_parsec", + "arg-type": "enable", + "target": [ + "shared" + ], + "ext-depends": [ + "mysqlnd" + ], + "lib-depends": [ + "libsodium", + "openssl" + ] + }, "oci8": { "type": "wip", "support": { diff --git a/config/source.json b/config/source.json index c96822d6..255d9584 100644 --- a/config/source.json +++ b/config/source.json @@ -871,6 +871,24 @@ "path": "LICENSE" } }, + "mysqlnd_ed25519": { + "type": "pie", + "repo": "mariadb/mysqlnd_ed25519", + "path": "php-src/ext/mysqlnd_ed25519", + "license": { + "type": "file", + "path": "LICENSE" + } + }, + "mysqlnd_parsec": { + "type": "pie", + "repo": "mariadb/mysqlnd_parsec", + "path": "php-src/ext/mysqlnd_parsec", + "license": { + "type": "file", + "path": "LICENSE" + } + }, "ncurses": { "type": "filelist", "url": "https://ftp.gnu.org/pub/gnu/ncurses/", diff --git a/src/SPC/builder/extension/mysqlnd_ed25519.php b/src/SPC/builder/extension/mysqlnd_ed25519.php new file mode 100644 index 00000000..7b2b4abc --- /dev/null +++ b/src/SPC/builder/extension/mysqlnd_ed25519.php @@ -0,0 +1,22 @@ +getConfigureArg(); + } +} diff --git a/src/SPC/builder/extension/mysqlnd_parsec.php b/src/SPC/builder/extension/mysqlnd_parsec.php new file mode 100644 index 00000000..d044b1c5 --- /dev/null +++ b/src/SPC/builder/extension/mysqlnd_parsec.php @@ -0,0 +1,22 @@ +getConfigureArg(); + } +} diff --git a/src/globals/test-extensions.php b/src/globals/test-extensions.php index 0402eaf3..d76153e4 100644 --- a/src/globals/test-extensions.php +++ b/src/globals/test-extensions.php @@ -13,9 +13,9 @@ declare(strict_types=1); // test php version (8.1 ~ 8.4 available, multiple for matrix) $test_php_version = [ - '8.1', - // '8.2', - // '8.3', + // '8.1', + '8.2', + '8.3', '8.4', '8.5', // 'git', @@ -50,13 +50,13 @@ $prefer_pre_built = 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' => 'swoole,imagick', + 'Linux', 'Darwin' => 'mysqli', 'Windows' => 'bcmath', }; // If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`). $shared_extensions = match (PHP_OS_FAMILY) { - 'Linux' => '', + 'Linux' => 'mysqlnd_parsec,mysqlnd_ed25519', 'Darwin' => '', 'Windows' => '', };