mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
detect PHP 8.1+
This commit is contained in:
parent
60e06737d7
commit
4a4b0e209c
@ -168,8 +168,11 @@ class LinuxBuilder extends BuilderBase
|
|||||||
|
|
||||||
SourcePatcher::patchBeforeConfigure($this);
|
SourcePatcher::patchBeforeConfigure($this);
|
||||||
|
|
||||||
$json_74 = $this->getPHPVersionID() < 80000 ? '--enable-json ' : '';
|
$phpVersionID = $this->getPHPVersionID();
|
||||||
$zts = $this->getOption('enable-zts', false) ? '--enable-zts --disable-zend-signals --enable-zend-max-execution-timers ' : '';
|
|
||||||
|
$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')
|
shell()->cd(SOURCE_PATH . '/php-src')
|
||||||
->exec(
|
->exec(
|
||||||
@ -185,6 +188,7 @@ class LinuxBuilder extends BuilderBase
|
|||||||
'--enable-fpm ' .
|
'--enable-fpm ' .
|
||||||
$json_74 .
|
$json_74 .
|
||||||
$zts .
|
$zts .
|
||||||
|
$maxExecutionTimers .
|
||||||
'--enable-micro=all-static ' .
|
'--enable-micro=all-static ' .
|
||||||
$this->makeExtensionArgs() . ' ' .
|
$this->makeExtensionArgs() . ' ' .
|
||||||
$envs
|
$envs
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user