mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
detect PHP 8.1+
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user