Skip to content

Commit

Permalink
explicitly disable unneeded SAPIs
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Sep 2, 2023
1 parent 3d81aee commit 7fef085
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/SPC/builder/linux/LinuxBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
8 changes: 4 additions & 4 deletions src/SPC/builder/macos/MacOSBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() . ' ' .
Expand Down

0 comments on commit 7fef085

Please sign in to comment.