Skip to content

Commit 6a4ad34

Browse files
authored
Add trader extension support (#951)
1 parent f1d1d4f commit 6a4ad34

File tree

3 files changed

+27
-9
lines changed

3 files changed

+27
-9
lines changed

config/ext.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,14 @@
988988
"type": "builtin",
989989
"build-with-php": true
990990
},
991+
"trader": {
992+
"support": {
993+
"BSD": "wip",
994+
"Windows": "wip"
995+
},
996+
"type": "external",
997+
"source": "ext-trader"
998+
},
991999
"uuid": {
9921000
"support": {
9931001
"Windows": "wip",

config/source.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@
233233
"path": "LICENSE"
234234
}
235235
},
236+
"ext-trader": {
237+
"type": "url",
238+
"url": "https://pecl.php.net/get/trader",
239+
"path": "php-src/ext/trader",
240+
"filename": "trader.tgz",
241+
"license": {
242+
"type": "file",
243+
"path": "LICENSE"
244+
}
245+
},
236246
"ext-uuid": {
237247
"type": "url",
238248
"url": "https://pecl.php.net/get/uuid",

src/globals/test-extensions.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323

2424
// test os (macos-15-intel, macos-15, ubuntu-latest, windows-latest are available)
2525
$test_os = [
26-
// 'macos-15-intel', // bin/spc for x86_64
27-
// 'macos-15', // bin/spc for arm64
28-
// 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
29-
// 'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
30-
// 'ubuntu-24.04', // bin/spc for x86_64
31-
// 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
32-
// 'ubuntu-24.04-arm', // bin/spc for arm64
26+
'macos-15-intel', // bin/spc for x86_64
27+
'macos-15', // bin/spc for arm64
28+
'ubuntu-latest', // bin/spc-alpine-docker for x86_64
29+
'ubuntu-22.04', // bin/spc-gnu-docker for x86_64
30+
'ubuntu-24.04', // bin/spc for x86_64
31+
'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
32+
'ubuntu-24.04-arm', // bin/spc for arm64
3333
// 'windows-2022', // .\bin\spc.ps1
34-
'windows-2025',
34+
// 'windows-2025',
3535
];
3636

3737
// whether enable thread safe
@@ -50,7 +50,7 @@
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' => 'pdo_pgsql',
53+
'Linux', 'Darwin' => 'trader',
5454
'Windows' => 'bcmath,bz2,calendar,ctype,curl,dba,dom,exif,ffi,fileinfo,filter,ftp,iconv,libxml,mbregex,mbstring,mysqli,mysqlnd,opcache,openssl,pdo,pdo_mysql,pdo_sqlite,pdo_sqlsrv,phar,session,shmop,simdjson,simplexml,soap,sockets,sqlite3,sqlsrv,ssh2,sysvshm,tokenizer,xml,xmlreader,xmlwriter,yaml,zip,zlib',
5555
};
5656

0 commit comments

Comments
 (0)