mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-04 21:08:28 +00:00
is_string() check
This commit is contained in:
parent
e403a2f986
commit
f404932895
@ -866,7 +866,7 @@ class Hash
|
|||||||
$result+= $argument < 0 ? ($argument & 0x7FFFFFFF) + 0x80000000 : $argument;
|
$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);
|
return fmod($result, $mod);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user