mirror of
https://github.com/danog/tgseclib.git
synced 2024-11-27 04:34:45 +01:00
Switch to extension_loaded('gmp')
This commit is contained in:
parent
a84699a346
commit
df6b201ab9
@ -3199,7 +3199,7 @@ class BigInteger
|
||||
$x = $this->random($min, $max);
|
||||
|
||||
// gmp_nextprime() requires PHP 5 >= 5.2.0 per <http://php.net/gmp-nextprime>.
|
||||
if (MATH_BIGINTEGER_MODE == self::MODE_GMP && function_exists('gmp_nextprime')) {
|
||||
if (MATH_BIGINTEGER_MODE == self::MODE_GMP && extension_loaded('gmp')) {
|
||||
$p = new static();
|
||||
$p->value = gmp_nextprime($x->value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user