mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-05 15:55:39 +08:00
update checks for shared swoole-hook extensions
This commit is contained in:
@@ -47,4 +47,15 @@ class swoole_hook_sqlite extends Extension
|
||||
throw new ValidationException('swoole sqlite hook is not enabled correctly.', validation_module: 'Extension swoole sqlite hook availability check');
|
||||
}
|
||||
}
|
||||
|
||||
public function getSharedExtensionLoadString(): string
|
||||
{
|
||||
$ret = parent::getSharedExtensionLoadString();
|
||||
return str_replace(' -d "extension=' . $this->name . '"', '', $ret);
|
||||
}
|
||||
|
||||
public function buildShared(): void
|
||||
{
|
||||
// nothing to do, it's built into swoole
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user