From f40493289575335efefb84862d686e5e06c8a93c Mon Sep 17 00:00:00 2001 From: Anthonius Alfred Andreas Date: Thu, 30 Nov 2023 21:44:06 +0700 Subject: [PATCH] is_string() check --- phpseclib/Crypt/Hash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/Hash.php b/phpseclib/Crypt/Hash.php index 78069b9a..5e5d13d4 100644 --- a/phpseclib/Crypt/Hash.php +++ b/phpseclib/Crypt/Hash.php @@ -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); }