mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-30 04:39:21 +01:00
Merge branch '3.0'
This commit is contained in:
commit
a7cfd2440a
@ -137,7 +137,7 @@ class BigInteger implements \JsonSerializable
|
||||
{
|
||||
if (!isset(self::$mainEngine)) {
|
||||
$engines = [
|
||||
['GMP'],
|
||||
['GMP', ['DefaultEngine']],
|
||||
['PHP64', ['OpenSSL']],
|
||||
['BCMath', ['OpenSSL']],
|
||||
['PHP32', ['OpenSSL']],
|
||||
@ -146,7 +146,7 @@ class BigInteger implements \JsonSerializable
|
||||
];
|
||||
foreach ($engines as $engine) {
|
||||
try {
|
||||
self::setEngine($engine[0], $engine[1] ?? []);
|
||||
self::setEngine($engine[0], $engine[1]);
|
||||
break;
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user