From 7fef085f15a9f82b47a1f28840274b941b8080c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sat, 2 Sep 2023 21:25:33 +0200 Subject: [PATCH] explicitly disable unneeded SAPIs --- src/SPC/builder/linux/LinuxBuilder.php | 8 ++++---- src/SPC/builder/macos/MacOSBuilder.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/SPC/builder/linux/LinuxBuilder.php b/src/SPC/builder/linux/LinuxBuilder.php index 16533c65..0e7d0e37 100644 --- a/src/SPC/builder/linux/LinuxBuilder.php +++ b/src/SPC/builder/linux/LinuxBuilder.php @@ -194,13 +194,13 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void '--disable-all ' . '--disable-cgi ' . '--disable-phpdbg ' . - ($enableCli ? '--enable-cli ' : '') . - ($enableFpm ? '--enable-fpm ' : '') . - ($enableEmbed ? '--enable-embed=static ' : '') . + ($enableCli ? '--enable-cli ' : '--disable-cli ') . + ($enableFpm ? '--enable-fpm ' : '--disable-fpm ') . + ($enableEmbed ? '--enable-embed=static ' : '--disable-embed ') . $json_74 . $zts . $maxExecutionTimers . - ($enableMicro ? '--enable-micro=all-static ' : '') . + ($enableMicro ? '--enable-micro=all-static ' : '--disable-micro ') . $this->makeExtensionArgs() . ' ' . $envs ); diff --git a/src/SPC/builder/macos/MacOSBuilder.php b/src/SPC/builder/macos/MacOSBuilder.php index d87c8c53..d179a1bc 100644 --- a/src/SPC/builder/macos/MacOSBuilder.php +++ b/src/SPC/builder/macos/MacOSBuilder.php @@ -167,10 +167,10 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void '--disable-all ' . '--disable-cgi ' . '--disable-phpdbg ' . - ($enableCli ? '--enable-cli ' : '') . - ($enableFpm ? '--enable-fpm ' : '') . - ($enableEmbed ? '--enable-embed=static ' : '') . - ($enableMicro ? '--enable-micro ' : '') . + ($enableCli ? '--enable-cli ' : '--disable-cli ') . + ($enableFpm ? '--enable-fpm ' : '--disable-fpm ') . + ($enableEmbed ? '--enable-embed=static ' : '--disable-embed ') . + ($enableMicro ? '--enable-micro ' : '--disable-micro ') . $json_74 . $zts . $this->makeExtensionArgs() . ' ' .