Skip to content

Commit 59a6e27

Browse files
authored
add pcov extension (shared only, like xdebug) (#979)
2 parents 6b3b841 + e6591ff commit 59a6e27

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

config/ext.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,13 @@
567567
"type": "builtin",
568568
"unix-only": true
569569
},
570+
"pcov": {
571+
"type": "external",
572+
"source": "pcov",
573+
"target": [
574+
"shared"
575+
]
576+
},
570577
"pdo": {
571578
"type": "builtin"
572579
},

config/source.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,15 @@
963963
"path": "LICENSE"
964964
}
965965
},
966+
"pcov": {
967+
"type": "url",
968+
"url": "https://pecl.php.net/get/pcov",
969+
"filename": "pcov.tgz",
970+
"license": {
971+
"type": "file",
972+
"path": "LICENSE"
973+
}
974+
},
966975
"pdo_sqlsrv": {
967976
"type": "url",
968977
"url": "https://pecl.php.net/get/pdo_sqlsrv",

src/globals/test-extensions.php

Lines changed: 10 additions & 10 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',
@@ -25,17 +25,17 @@
2525
$test_os = [
2626
'macos-15-intel', // bin/spc for x86_64
2727
'macos-15', // bin/spc for arm64
28-
'ubuntu-latest', // bin/spc-alpine-docker for x86_64
28+
// 'ubuntu-latest', // bin/spc-alpine-docker for x86_64
2929
'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
30+
// 'ubuntu-24.04', // bin/spc for x86_64
31+
// 'ubuntu-22.04-arm', // bin/spc-gnu-docker for arm64
3232
'ubuntu-24.04-arm', // bin/spc for arm64
3333
// 'windows-2022', // .\bin\spc.ps1
3434
// 'windows-2025',
3535
];
3636

3737
// whether enable thread safe
38-
$zts = false;
38+
$zts = true;
3939

4040
$no_strip = false;
4141

@@ -50,14 +50,14 @@
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' => 'maxminddb',
53+
'Linux', 'Darwin' => 'bcmath',
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' => '',
60-
'Darwin' => '',
59+
'Linux' => 'pcov',
60+
'Darwin' => 'pcov',
6161
'Windows' => '',
6262
};
6363

0 commit comments

Comments
 (0)