add swoole-hook-odbc to work the same way as the other hooks

This commit is contained in:
DubbleClick
2025-08-26 00:24:40 +07:00
parent 2694dd9e21
commit b1da64d46b
6 changed files with 62 additions and 17 deletions

View File

@@ -27,10 +27,6 @@ class swoole_hook_pgsql extends Extension
public function runCliCheckUnix(): void
{
// skip if not enable swoole
if ($this->builder->getExt('swoole') === null) {
return;
}
$sharedExtensions = $this->getSharedExtensionLoadString();
[$ret, $out] = shell()->execWithResult(BUILD_BIN_PATH . '/php -n' . $sharedExtensions . ' --ri "' . $this->getDistName() . '"');
$out = implode('', $out);