Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
[math][php-56] PHP now throws E_WARNING when string is not a valid gm…
Browse files Browse the repository at this point in the history
…p integer.
  • Loading branch information
Maks3w authored and Ocramius committed Apr 14, 2014
1 parent df97b23 commit 60ae086
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/Zend/Math/BigInteger/Adapter/Gmp.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ public function init($operand, $base = null)
}
}

set_error_handler(function () { /* Do nothing */}, \E_WARNING);
$res = gmp_init($sign . $operand, $base);
restore_error_handler();
if ($res === false) {
return false;
}
Expand Down

0 comments on commit 60ae086

Please sign in to comment.