1
0
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:
terrafrost 2023-07-25 20:37:18 -05:00
commit a7cfd2440a

View File

@ -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) {
}