This commit is contained in:
DubbleClick 2025-05-25 18:39:11 +07:00
parent e2ea10d2eb
commit 92acb95a58

View File

@ -30,7 +30,7 @@ class swoole_hook_mysql extends Extension
return;
}
putenv('EXTENSION_DIR=' . BUILD_MODULES_PATH);
[$ret, $out] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php -n'. $this->getSharedExtensionLoadString() . ' --ri "swoole"', false);
[$ret, $out] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php -n' . $this->getSharedExtensionLoadString() . ' --ri "swoole"', false);
$out = implode('', $out);
if ($ret !== 0) {
throw new RuntimeException('extension ' . $this->getName() . ' failed compile check: php-cli returned ' . $ret);