diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 677b2ff2..875f2b36 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -138,6 +138,7 @@ class BigInteger implements \Serializable self::setEngine($engine[0], isset($engine[1]) ? $engine[1] : []); break; } catch (\InvalidArgumentException $e) { + } catch (BadConfigurationException $e) { } } } diff --git a/tests/Unit/Math/BigIntegerTest.php b/tests/Unit/Math/BigIntegerTest.php new file mode 100644 index 00000000..faea93f0 --- /dev/null +++ b/tests/Unit/Math/BigIntegerTest.php @@ -0,0 +1,73 @@ +toString()); + } +}