Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/SPC/builder/linux/LinuxBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,11 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void

SourcePatcher::patchBeforeConfigure($this);

$json_74 = $this->getPHPVersionID() < 80000 ? '--enable-json ' : '';
$zts = $this->getOption('enable-zts', false) ? '--enable-zts ' : '';
$phpVersionID = $this->getPHPVersionID();

$json_74 = $phpVersionID < 80000 ? '--enable-json ' : '';
$maxExecutionTimers = $this->getOption('enable-zts', false) && $this->getPHPVersionID() > 81000 ? '--enable-zend-max-execution-timers ' : '';
$zts = $this->getOption('enable-zts', false) ? '--enable-zts --disable-zend-signals ' : '';

shell()->cd(SOURCE_PATH . '/php-src')
->exec(
Expand All @@ -185,6 +188,7 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
'--enable-fpm ' .
$json_74 .
$zts .
$maxExecutionTimers .
'--enable-micro=all-static ' .
$this->makeExtensionArgs() . ' ' .
$envs
Expand Down
2 changes: 1 addition & 1 deletion src/SPC/builder/macos/MacOSBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
SourcePatcher::patchBeforeConfigure($this);

$json_74 = $this->getPHPVersionID() < 80000 ? '--enable-json ' : '';
$zts = $this->getOption('enable-zts', false) ? '--enable-zts ' : '';
$zts = $this->getOption('enable-zts', false) ? '--enable-zts --disable-zend-signals ' : '';

shell()->cd(SOURCE_PATH . '/php-src')
->exec(
Expand Down