mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-13 01:27:40 +01:00
BigInteger: define $p
This commit is contained in:
parent
c0fa1ee0b9
commit
30408ff8fb
@ -3147,6 +3147,7 @@ class Math_BigInteger {
|
||||
|
||||
// gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user