update checks for shared swoole-hook extensions

This commit is contained in:
DubbleClick
2025-08-25 12:08:53 +07:00
parent 75f734daa8
commit 8104ff7236
6 changed files with 42 additions and 6 deletions

View File

@@ -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
}
}