mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-06 00:05:42 +08:00
Fix PHPUnit test on Windows, ignore calling linux system util for other OS
This commit is contained in:
@@ -99,8 +99,11 @@ class SPCTarget
|
||||
*/
|
||||
public static function getLibcVersion(): ?string
|
||||
{
|
||||
$libc = self::getLibc();
|
||||
return SystemUtil::getLibcVersionIfExists($libc);
|
||||
if (PHP_OS_FAMILY === 'Linux') {
|
||||
$libc = self::getLibc();
|
||||
return SystemUtil::getLibcVersionIfExists($libc);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user