mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-04 23:35:40 +08:00
move zend extension check into config
This commit is contained in:
@@ -226,7 +226,7 @@ class Extension
|
||||
$ret = '';
|
||||
foreach ($order as $ext) {
|
||||
if ($ext instanceof Extension && $ext->isBuildShared()) {
|
||||
if ($ext->isZendExtension()) {
|
||||
if (Config::getExt($ext->getName(), 'zend_extension', false) === true) {
|
||||
$ret .= " -d \"zend_extension={$ext->getName()}\"";
|
||||
} else {
|
||||
$ret .= " -d \"extension={$ext->getName()}\"";
|
||||
@@ -448,11 +448,6 @@ class Extension
|
||||
}
|
||||
}
|
||||
|
||||
protected function isZendExtension(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
private function getLibraryDependencies(bool $recursive = false): array
|
||||
{
|
||||
$ret = array_filter($this->dependencies, fn ($x) => $x instanceof LibraryBase);
|
||||
|
||||
Reference in New Issue
Block a user