From 4af1bb4c176e9e8aa85f115e7ab6cb1417c2e3c5 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 23 Jun 2019 11:12:17 -0500 Subject: [PATCH] BigInteger: the !== [] check only works on PHP 5.4+ --- phpseclib/Math/BigInteger.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 000f2bcc..6df4f8b4 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -1586,7 +1586,7 @@ class Math_BigInteger $temp_value = array($quotient_value[$q_index]); $temp = $temp->multiply($y); $temp_value = &$temp->value; - if ($temp_value !== []) { + if (!count($temp_value)) { $temp_value = array_merge($adjust, $temp_value); }