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

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