mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
BigInteger: fix PHP7 error
$x = gmp_init(6); empty($x); demonstrates the problem
This commit is contained in:
parent
71d7108d9a
commit
833da775b6
@ -3557,7 +3557,7 @@ class Math_BigInteger
|
||||
|
||||
switch (MATH_BIGINTEGER_MODE) {
|
||||
case MATH_BIGINTEGER_MODE_GMP:
|
||||
if (!empty($result->bitmask->value)) {
|
||||
if ($this->bitmask !== false) {
|
||||
$result->value = gmp_and($result->value, $result->bitmask->value);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user