Skip to content

Commit f4327c8

Browse files
dunglascrazywhalecc
authored andcommitted
fix
1 parent 4a4b0e2 commit f4327c8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/SPC/builder/linux/LinuxBuilder.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,15 @@ public function buildPHP(int $build_target = BUILD_TARGET_NONE): void
169169
SourcePatcher::patchBeforeConfigure($this);
170170

171171
$phpVersionID = $this->getPHPVersionID();
172-
173172
$json_74 = $phpVersionID < 80000 ? '--enable-json ' : '';
174-
$maxExecutionTimers = $this->getOption('enable-zts', false) && $this->getPHPVersionID() > 81000 ? '--enable-zend-max-execution-timers ' : '';
175-
$zts = $this->getOption('enable-zts', false) ? '--enable-zts --disable-zend-signals ' : '';
173+
174+
if ($this->getOption('enable-zts', false)) {
175+
$maxExecutionTimers = $phpVersionID >= 80100 ? '--enable-zend-max-execution-timers ' : '';
176+
$zts = '--enable-zts --disable-zend-signals ';
177+
} else {
178+
$maxExecutionTimers = '';
179+
$zts = '';
180+
}
176181

177182
shell()->cd(SOURCE_PATH . '/php-src')
178183
->exec(

0 commit comments

Comments
 (0)