This commit is contained in:
DubbleClick 2025-08-26 14:51:07 +07:00
parent 2d409db2f9
commit effefd4844

View File

@ -100,7 +100,7 @@ class SPCTarget
public static function getLibcVersion(): ?string public static function getLibcVersion(): ?string
{ {
if (PHP_OS_FAMILY === 'Linux') { if (PHP_OS_FAMILY === 'Linux') {
$target = getenv('SPC_TARGET'); $target = (string) getenv('SPC_TARGET');
if (str_contains($target, '-gnu.2.')) { if (str_contains($target, '-gnu.2.')) {
return preg_match('/-gnu\.(2\.\d+)/', $target, $matches) ? $matches[1] : null; return preg_match('/-gnu\.(2\.\d+)/', $target, $matches) ? $matches[1] : null;
} }