mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 02:15:36 +08:00
we don't need this anymore
This commit is contained in:
@@ -22,7 +22,6 @@ use StaticPHP\Runtime\SystemTarget;
|
|||||||
use StaticPHP\Toolchain\Interface\ToolchainInterface;
|
use StaticPHP\Toolchain\Interface\ToolchainInterface;
|
||||||
use StaticPHP\Util\DirDiff;
|
use StaticPHP\Util\DirDiff;
|
||||||
use StaticPHP\Util\FileSystem;
|
use StaticPHP\Util\FileSystem;
|
||||||
use StaticPHP\Util\GlobalEnvManager;
|
|
||||||
use StaticPHP\Util\InteractiveTerm;
|
use StaticPHP\Util\InteractiveTerm;
|
||||||
use StaticPHP\Util\SourcePatcher;
|
use StaticPHP\Util\SourcePatcher;
|
||||||
use StaticPHP\Util\SPCConfigUtil;
|
use StaticPHP\Util\SPCConfigUtil;
|
||||||
@@ -91,13 +90,6 @@ trait unix
|
|||||||
$args = [];
|
$args = [];
|
||||||
$version_id = self::getPHPVersionID();
|
$version_id = self::getPHPVersionID();
|
||||||
|
|
||||||
// disable undefined behavior sanitizer when opcache JIT is enabled (Linux only)
|
|
||||||
if (SystemTarget::getTargetOS() === 'Linux' && !$package->getBuildOption('disable-opcache-jit', false)) {
|
|
||||||
if ($version_id >= 80500 || $installer->isPackageResolved('ext-opcache')) {
|
|
||||||
$compiler_extra = getenv('SPC_COMPILER_EXTRA') ?: '';
|
|
||||||
GlobalEnvManager::putenv('SPC_COMPILER_EXTRA=' . trim($compiler_extra . ' -fno-sanitize=undefined'));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// PHP JSON extension is built-in since PHP 8.0
|
// PHP JSON extension is built-in since PHP 8.0
|
||||||
if ($version_id < 80000) {
|
if ($version_id < 80000) {
|
||||||
$args[] = '--enable-json';
|
$args[] = '--enable-json';
|
||||||
|
|||||||
Reference in New Issue
Block a user