From d81c748bd471f040f52eb8db4fc417cd0304ee02 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Thu, 19 Jun 2025 20:29:23 +0700 Subject: [PATCH] passing --build-embed sets the result to NULL, not true (and not false, like for options that are not passed) --- src/SPC/command/BuildPHPCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SPC/command/BuildPHPCommand.php b/src/SPC/command/BuildPHPCommand.php index de6a2b52..238cf919 100644 --- a/src/SPC/command/BuildPHPCommand.php +++ b/src/SPC/command/BuildPHPCommand.php @@ -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; }