change extension_dir, the env variable only has an effect during compilation

This commit is contained in:
DubbleClick
2025-05-31 21:01:22 +07:00
parent ad3860981a
commit 3052b1cca5
5 changed files with 5 additions and 6 deletions

View File

@@ -29,7 +29,6 @@ class swoole_hook_mysql extends Extension
if ($this->builder->getExt('swoole') === null) {
return;
}
putenv('EXTENSION_DIR=' . BUILD_MODULES_PATH);
[$ret, $out] = shell()->execWithResult(BUILD_ROOT_PATH . '/bin/php -n' . $this->getSharedExtensionLoadString() . ' --ri "swoole"', false);
$out = implode('', $out);
if ($ret !== 0) {