mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-02 09:38:06 +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)) {
|
if (!isset(self::$mainEngine)) {
|
||||||
$engines = [
|
$engines = [
|
||||||
['GMP'],
|
['GMP', ['DefaultEngine']],
|
||||||
['PHP64', ['OpenSSL']],
|
['PHP64', ['OpenSSL']],
|
||||||
['BCMath', ['OpenSSL']],
|
['BCMath', ['OpenSSL']],
|
||||||
['PHP32', ['OpenSSL']],
|
['PHP32', ['OpenSSL']],
|
||||||
@ -146,7 +146,7 @@ class BigInteger implements \JsonSerializable
|
|||||||
];
|
];
|
||||||
foreach ($engines as $engine) {
|
foreach ($engines as $engine) {
|
||||||
try {
|
try {
|
||||||
self::setEngine($engine[0], $engine[1] ?? []);
|
self::setEngine($engine[0], $engine[1]);
|
||||||
break;
|
break;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user