mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Compare commits
4 Commits
4766ae146f
...
f4327c8c81
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4327c8c81 | ||
|
|
4a4b0e209c | ||
|
|
60e06737d7 | ||
|
|
d326154241 |
@ -168,8 +168,16 @@ class LinuxBuilder extends BuilderBase
|
||||
|
||||
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 ' : '';
|
||||
|
||||
if ($this->getOption('enable-zts', false)) {
|
||||
$maxExecutionTimers = $phpVersionID >= 80100 ? '--enable-zend-max-execution-timers ' : '';
|
||||
$zts = '--enable-zts --disable-zend-signals ';
|
||||
} else {
|
||||
$maxExecutionTimers = '';
|
||||
$zts = '';
|
||||
}
|
||||
|
||||
shell()->cd(SOURCE_PATH . '/php-src')
|
||||
->exec(
|
||||
@ -185,6 +193,7 @@ class LinuxBuilder extends BuilderBase
|
||||
'--enable-fpm ' .
|
||||
$json_74 .
|
||||
$zts .
|
||||
$maxExecutionTimers .
|
||||
'--enable-micro=all-static ' .
|
||||
$this->makeExtensionArgs() . ' ' .
|
||||
$envs
|
||||
|
||||
@ -149,7 +149,7 @@ class MacOSBuilder extends BuilderBase
|
||||
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(
|
||||
|
||||
@ -16,7 +16,7 @@ class LinuxMuslCheck
|
||||
#[AsCheckItem('if musl-libc is installed', limit_os: 'Linux')]
|
||||
public function checkMusl(): ?CheckResult
|
||||
{
|
||||
$file = '/lib/ld-musl-x86_64.so.1';
|
||||
$file = sprintf('/lib/ld-musl-%s.so.1', php_uname('m'));
|
||||
if (file_exists($file)) {
|
||||
return CheckResult::ok();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user