mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Separate musl-dist and non-musl-dist
This commit is contained in:
parent
631a1b5864
commit
8e5657eff0
@ -203,7 +203,11 @@ class SystemUtil
|
||||
return null;
|
||||
}
|
||||
if (PHP_OS_FAMILY === 'Linux' && getenv('SPC_LIBC') === 'musl') {
|
||||
$result = shell()->execWithResult('ldd 2>&1');
|
||||
if (self::isMuslDist()) {
|
||||
$result = shell()->execWithResult('ldd 2>&1');
|
||||
} else {
|
||||
$result = shell()->execWithResult('/usr/local/musl/lib/libc.so 2>&1');
|
||||
}
|
||||
// Match Version * line
|
||||
// match ldd version: "Version 1.2.3" match 1.2.3
|
||||
$pattern = '/Version\s+(\d+\.\d+\.\d+)/';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user