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

@@ -38,7 +38,6 @@ class swoole_hook_sqlite extends Extension
return;
}
$sharedExtensions = $this->getSharedExtensionLoadString();
putenv('EXTENSION_DIR=' . BUILD_MODULES_PATH);
[$ret, $out] = shell()->execWithResult(BUILD_BIN_PATH . '/php -n' . $sharedExtensions . ' --ri "' . $this->getDistName() . '"');
$out = implode('', $out);
if ($ret !== 0) {