mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-22 00:05:37 +08:00
fix: musl detection on non-x86_64
This commit is contained in:
@@ -16,7 +16,7 @@ class LinuxMuslCheck
|
|||||||
#[AsCheckItem('if musl-libc is installed', limit_os: 'Linux')]
|
#[AsCheckItem('if musl-libc is installed', limit_os: 'Linux')]
|
||||||
public function checkMusl(): ?CheckResult
|
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)) {
|
if (file_exists($file)) {
|
||||||
return CheckResult::ok();
|
return CheckResult::ok();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user