Merge pull request #583 from Halleck45/support_ast_extension

Support AST extension
This commit is contained in:
Jean-François Lépine 2025-01-13 04:11:32 +01:00 committed by GitHub
parent a3e0ad6b9f
commit 20dad4cdb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 22 additions and 2 deletions

View File

@ -17,6 +17,10 @@
"type": "external",
"source": "apcu"
},
"ast": {
"type": "external",
"source": "ast"
},
"bcmath": {
"type": "builtin"
},

View File

@ -26,6 +26,16 @@
"path": "LICENSE"
}
},
"ast": {
"type": "url",
"url": "https://pecl.php.net/get/ast",
"path": "php-src/ext/ast",
"filename": "ast.tgz",
"license": {
"type": "file",
"path": "LICENSE"
}
},
"brotli": {
"type": "ghtar",
"repo": "google/brotli",

View File

@ -0,0 +1,5 @@
<?php
declare(strict_types=1);
assert(function_exists('ast\parse_code'));

View File

@ -24,6 +24,7 @@ $test_os = [
'macos-14',
// 'macos-13',
'ubuntu-latest',
'windows-latest',
];
// whether enable thread safe
@ -39,8 +40,8 @@ $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' => 'openssl',
'Windows' => 'openssl',
'Linux', 'Darwin' => 'ast',
'Windows' => 'ast',
};
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).