is_string() check

This commit is contained in:
Anthonius Alfred Andreas 2023-11-30 21:44:06 +07:00
parent e403a2f986
commit f404932895
1 changed files with 1 additions and 1 deletions

View File

@ -866,7 +866,7 @@ class Hash
$result+= $argument < 0 ? ($argument & 0x7FFFFFFF) + 0x80000000 : $argument;
}
if (function_exists('php_uname') && (php_uname('m') & "\xDF\xDF\xDF") != 'ARM') {
if (function_exists('php_uname') && is_string(php_uname('m')) && (php_uname('m') & "\xDF\xDF\xDF") != 'ARM') {
return fmod($result, $mod);
}