builder->getExt('swoole') === null) { return; } [$ret, $out] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php --ri "swoole"', false); $out = implode('', $out); if ($ret !== 0) { throw new RuntimeException('extension ' . $this->getName() . ' failed compile check: php-cli returned ' . $ret); } if (!str_contains($out, 'mysqlnd')) { throw new RuntimeException('swoole mysql hook is not enabled correctly.'); } } }