We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f16dadf commit 4c37294Copy full SHA for 4c37294
src/ZM/ConsoleApplication.php
@@ -32,7 +32,11 @@ public function __construct(string $name = 'zhamao-framework')
32
// 初始化 Composer 变量
33
if (file_exists(WORKING_DIR . '/runtime/composer.phar')) {
34
echo '* Using native composer' . PHP_EOL;
35
- putenv('COMPOSER_EXECUTABLE=' . WORKING_DIR . '/runtime/composer.phar');
+ if (WORKING_DIR . '/runtime/php' === PHP_BINARY) {
36
+ putenv('COMPOSER_EXECUTABLE="' . WORKING_DIR . '/runtime/php ' . WORKING_DIR . '/runtime/composer.phar"');
37
+ } else {
38
+ putenv('COMPOSER_EXECUTABLE="' . WORKING_DIR . '/runtime/composer.phar"');
39
+ }
40
}
41
42
$this->registerCommandLoader();
0 commit comments