mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 01:45:36 +08:00
Merge pull request #583 from Halleck45/support_ast_extension
Support AST extension
This commit is contained in:
committed by
GitHub
parent
a3e0ad6b9f
commit
20dad4cdb3
@@ -17,6 +17,10 @@
|
|||||||
"type": "external",
|
"type": "external",
|
||||||
"source": "apcu"
|
"source": "apcu"
|
||||||
},
|
},
|
||||||
|
"ast": {
|
||||||
|
"type": "external",
|
||||||
|
"source": "ast"
|
||||||
|
},
|
||||||
"bcmath": {
|
"bcmath": {
|
||||||
"type": "builtin"
|
"type": "builtin"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -26,6 +26,16 @@
|
|||||||
"path": "LICENSE"
|
"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": {
|
"brotli": {
|
||||||
"type": "ghtar",
|
"type": "ghtar",
|
||||||
"repo": "google/brotli",
|
"repo": "google/brotli",
|
||||||
|
|||||||
5
src/globals/ext-tests/ast.php
Normal file
5
src/globals/ext-tests/ast.php
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
assert(function_exists('ast\parse_code'));
|
||||||
@@ -24,6 +24,7 @@ $test_os = [
|
|||||||
'macos-14',
|
'macos-14',
|
||||||
// 'macos-13',
|
// 'macos-13',
|
||||||
'ubuntu-latest',
|
'ubuntu-latest',
|
||||||
|
'windows-latest',
|
||||||
];
|
];
|
||||||
|
|
||||||
// whether enable thread safe
|
// 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`).
|
// If you want to test your added extensions and libs, add below (comma separated, example `bcmath,openssl`).
|
||||||
$extensions = match (PHP_OS_FAMILY) {
|
$extensions = match (PHP_OS_FAMILY) {
|
||||||
'Linux', 'Darwin' => 'openssl',
|
'Linux', 'Darwin' => 'ast',
|
||||||
'Windows' => 'openssl',
|
'Windows' => 'ast',
|
||||||
};
|
};
|
||||||
|
|
||||||
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
|
// If you want to test lib-suggests feature with extension, add them below (comma separated, example `libwebp,libavif`).
|
||||||
|
|||||||
Reference in New Issue
Block a user