mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-02 14:25:41 +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')]
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user