mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ParserFunctions
synced 2024-11-15 11:59:54 +00:00
fix regression -- bc compat check was reversed; attempting to call bcpow() when no bc :)
This commit is contained in:
parent
5a331c7c28
commit
47042d2584
4
Expr.php
4
Expr.php
|
@ -635,9 +635,9 @@ class ExprParser {
|
|||
$left = array_pop( $stack );
|
||||
$result = false;
|
||||
if ($haveBC)
|
||||
$result = pow( $left, $right );
|
||||
else
|
||||
$result = bcpow( $left, $right );
|
||||
else
|
||||
$result = pow( $left, $right );
|
||||
|
||||
if ( false === $result )
|
||||
throw new ExprError('division_by_zero', $this->names[$op]);
|
||||
|
|
Loading…
Reference in a new issue