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:
DubbleClick
2025-06-19 20:29:23 +07:00
parent 7f9da6478f
commit d81c748bd4

View File

@@ -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;
}