From 4570012a9d7bcd894c286b00323048e0e7e1e16c Mon Sep 17 00:00:00 2001 From: sunxyw Date: Sat, 11 Feb 2023 19:03:13 +0800 Subject: [PATCH] fix plugin install not respect php binary --- src/ZM/Command/Plugin/PluginInstallCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZM/Command/Plugin/PluginInstallCommand.php b/src/ZM/Command/Plugin/PluginInstallCommand.php index 76c5a00d..9c2aef47 100644 --- a/src/ZM/Command/Plugin/PluginInstallCommand.php +++ b/src/ZM/Command/Plugin/PluginInstallCommand.php @@ -98,7 +98,7 @@ class PluginInstallCommand extends PluginCommand // 使用内建 Composer if (file_exists(WORKING_DIR . '/runtime/composer.phar')) { $this->info('使用内建 Composer'); - passthru('php ' . escapeshellarg(WORKING_DIR . '/runtime/composer.phar') . ' install --no-dev', $code); + passthru(PHP_BINARY . ' ' . escapeshellarg(WORKING_DIR . '/runtime/composer.phar') . ' install --no-dev', $code); } else { $this->info('使用系统 Composer'); passthru('composer install --no-dev', $code);