Skip to content

Commit 9a681a9

Browse files
committed
add mariadb mysqlnd plugins
1 parent f7ca621 commit 9a681a9

File tree

5 files changed

+97
-5
lines changed

5 files changed

+97
-5
lines changed

config/ext.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,36 @@
487487
"zlib"
488488
]
489489
},
490+
"mysqlnd_ed25519": {
491+
"type": "external",
492+
"source": "mysqlnd_ed25519",
493+
"arg-type": "enable",
494+
"target": [
495+
"shared"
496+
],
497+
"ext-depends": [
498+
"mysqlnd"
499+
],
500+
"lib-depends": [
501+
"libsodium",
502+
"openssl"
503+
]
504+
},
505+
"mysqlnd_parsec": {
506+
"type": "external",
507+
"source": "mysqlnd_parsec",
508+
"arg-type": "enable",
509+
"target": [
510+
"shared"
511+
],
512+
"ext-depends": [
513+
"mysqlnd"
514+
],
515+
"lib-depends": [
516+
"libsodium",
517+
"openssl"
518+
]
519+
},
490520
"oci8": {
491521
"type": "wip",
492522
"support": {

config/source.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,24 @@
871871
"path": "LICENSE"
872872
}
873873
},
874+
"mysqlnd_ed25519": {
875+
"type": "pie",
876+
"repo": "mariadb/mysqlnd_ed25519",
877+
"path": "php-src/ext/mysqlnd_ed25519",
878+
"license": {
879+
"type": "file",
880+
"path": "LICENSE"
881+
}
882+
},
883+
"mysqlnd_parsec": {
884+
"type": "pie",
885+
"repo": "mariadb/mysqlnd_parsec",
886+
"path": "php-src/ext/mysqlnd_parsec",
887+
"license": {
888+
"type": "file",
889+
"path": "LICENSE"
890+
}
891+
},
874892
"ncurses": {
875893
"type": "filelist",
876894
"url": "https://ftp.gnu.org/pub/gnu/ncurses/",
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SPC\builder\extension;
6+
7+
use SPC\builder\Extension;
8+
use SPC\util\CustomExt;
9+
10+
#[CustomExt('mysqlnd_ed25519')]
11+
class mysqlnd_ed25519 extends Extension
12+
{
13+
public function getConfigureArg(bool $shared = false): string
14+
{
15+
return '--with-mysqlnd_ed25519' . ($shared ? '=shared' : '');
16+
}
17+
18+
public function getUnixConfigureArg(bool $shared = false): string
19+
{
20+
return $this->getConfigureArg();
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace SPC\builder\extension;
6+
7+
use SPC\builder\Extension;
8+
use SPC\util\CustomExt;
9+
10+
#[CustomExt('mysqlnd_parsec')]
11+
class mysqlnd_parsec extends Extension
12+
{
13+
public function getConfigureArg(bool $shared = false): string
14+
{
15+
return '--enable-mysqlnd_parsec' . ($shared ? '=shared' : '');
16+
}
17+
18+
public function getUnixConfigureArg(bool $shared = false): string
19+
{
20+
return $this->getConfigureArg();
21+
}
22+
}

src/globals/test-extensions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
// test php version (8.1 ~ 8.4 available, multiple for matrix)
1515
$test_php_version = [
16-
'8.1',
17-
// '8.2',
18-
// '8.3',
16+
// '8.1',
17+
'8.2',
18+
'8.3',
1919
'8.4',
2020
'8.5',
2121
// 'git',
@@ -50,13 +50,13 @@
5050

5151
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
5252
$extensions = match (PHP_OS_FAMILY) {
53-
'Linux', 'Darwin' => 'swoole,imagick',
53+
'Linux', 'Darwin' => 'mysqli',
5454
'Windows' => 'bcmath',
5555
};
5656

5757
// If you want to test shared extensions, add them below (comma separated, example `bcmath,openssl`).
5858
$shared_extensions = match (PHP_OS_FAMILY) {
59-
'Linux' => '',
59+
'Linux' => 'mysqlnd_parsec,mysqlnd_ed25519',
6060
'Darwin' => '',
6161
'Windows' => '',
6262
};

0 commit comments

Comments
 (0)