mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 16:25:39 +08:00
replace ext-zend-opcache with ext-opcache for spc extension list (#475)
* replace ext-zend-opcache with ext-opcache for spc extension list * Use constant to set internal and filter extensions --------- Co-authored-by: Marc Henderkes <m.henderkes@pc-college.de> Co-authored-by: crazywhalecc <jesse2061@outlook.com>
This commit is contained in:
@@ -38,6 +38,23 @@ const DANGER_CMD = [
|
||||
'rmdir',
|
||||
];
|
||||
|
||||
// spc internal extensions
|
||||
const SPC_INTERNAL_EXTENSIONS = [
|
||||
'core',
|
||||
'hash',
|
||||
'json',
|
||||
'reflection',
|
||||
'spl',
|
||||
'standard',
|
||||
];
|
||||
|
||||
// spc extension alias
|
||||
const SPC_EXTENSION_ALIAS = [
|
||||
'zend opcache' => 'opcache',
|
||||
'zend-opcache' => 'opcache',
|
||||
'zendopcache' => 'opcache',
|
||||
];
|
||||
|
||||
// file replace strategy
|
||||
const REPLACE_FILE_STR = 1;
|
||||
const REPLACE_FILE_PREG = 2;
|
||||
|
||||
Reference in New Issue
Block a user