Merge pull request #818 from terrafrost/php7-2.0

BigInteger: fix PHP7 error for 2.0 branch

* terrafrost/php7-2.0:
  BigInteger: fix PHP7 error
This commit is contained in:
Andreas Fischer 2015-09-14 14:07:34 +02:00
commit 4d8388d5d0

View File

@ -3519,7 +3519,7 @@ class BigInteger
switch (MATH_BIGINTEGER_MODE) {
case self::MODE_GMP:
if (!empty($result->bitmask->value)) {
if ($this->bitmask !== false) {
$result->value = gmp_and($result->value, $result->bitmask->value);
}