From 30408ff8fba4cd78fdc816dd63d99cdb5fa8b2ab Mon Sep 17 00:00:00 2001 From: terrafrost Date: Tue, 18 Jun 2013 09:31:33 -0400 Subject: [PATCH] BigInteger: define $p --- phpseclib/Math/BigInteger.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpseclib/Math/BigInteger.php b/phpseclib/Math/BigInteger.php index 3837e8b7..a37662da 100644 --- a/phpseclib/Math/BigInteger.php +++ b/phpseclib/Math/BigInteger.php @@ -3147,6 +3147,7 @@ class Math_BigInteger { // gmp_nextprime() requires PHP 5 >= 5.2.0 per . if ( MATH_BIGINTEGER_MODE == MATH_BIGINTEGER_MODE_GMP && function_exists('gmp_nextprime') ) { + $p = new Math_BigInteger(); $p->value = gmp_nextprime($x->value); if ($p->compare($max) <= 0) {