mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 01:15:37 +08:00
change extension_dir, the env variable only has an effect during compilation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user