fix regression -- bc compat check was reversed; attempting to call bcpow() when no bc :)

This commit is contained in:
Brion Vibber 2009-02-18 05:23:56 +00:00
parent 5a331c7c28
commit 47042d2584

View file

@ -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]);