From 9c67616f1eba5ed0f7eb128095542811b0f42e3b Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 26 May 2019 11:41:03 -0500 Subject: [PATCH] BigInteger: new BigInteger('00') caused issues with GMP --- phpseclib/Math/BigInteger.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 9082ad5f..da79b031 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -441,6 +441,9 @@ class Math_BigInteger // (?<=^|-)0*: find any 0's that are preceded by the start of the string or by a - (ie. octals) // [^-0-9].*: find any non-numeric characters and then any characters that follow that $x = preg_replace('#(?