mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-12 18:01:09 +00:00
BigInteger: fix for PHP 8.4.0 - 8.4.1 regression
See https://github.com/php/php-src/issues/16870
This commit is contained in:
parent
58709cff79
commit
05085f4df0
@ -246,7 +246,8 @@ class Math_BigInteger
|
|||||||
{
|
{
|
||||||
if (!defined('MATH_BIGINTEGER_MODE')) {
|
if (!defined('MATH_BIGINTEGER_MODE')) {
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case extension_loaded('gmp'):
|
// PHP 8.4.0 and 8.4.1 don't work with GMP per https://github.com/php/php-src/issues/16870
|
||||||
|
case extension_loaded('gmp') && !(version_compare(PHP_VERSION, '8.4.0', '>=') && version_compare(PHP_VERSION, '8.4.1', '<=')):
|
||||||
define('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_GMP);
|
define('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_GMP);
|
||||||
break;
|
break;
|
||||||
case extension_loaded('bcmath'):
|
case extension_loaded('bcmath'):
|
||||||
|
Loading…
Reference in New Issue
Block a user