mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-18 22:35:36 +08:00
passing --build-embed sets the result to NULL, not true (and not false, like for options that are not passed)
This commit is contained in:
@@ -295,6 +295,7 @@ class BuildPHPCommand extends BuildCommand
|
||||
$rule |= ($this->getOption('build-micro') ? BUILD_TARGET_MICRO : BUILD_TARGET_NONE);
|
||||
$rule |= ($this->getOption('build-fpm') ? BUILD_TARGET_FPM : BUILD_TARGET_NONE);
|
||||
$embed = $this->getOption('build-embed');
|
||||
$embed = $embed === null ? true : $embed;
|
||||
if (!$embed && !empty($shared_extensions)) {
|
||||
$embed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user