Permalink
Browse files

Fixing bug 25059

  • Loading branch information...
1 parent 352f065 commit e956b650293c567078789910e7e94d49caf11298 @jmcastagnetto committed with Aug 13, 2003
Showing with 2 additions and 2 deletions.
  1. +2 −2 Integer/gmp.php
View
@@ -157,7 +157,7 @@ function pow(&$int) {/*{{{*/
return PEAR::raiseError('Parameter is not a Math_Integer_GMP object');
}
if ($int->isNegative()) {
- return PEAR::raisError('Exponent cannot be negative');
+ return PEAR::raiseError('Exponent cannot be negative');
} elseif ($int->isZero()) {
$this->setValue(1);
} else {
@@ -206,7 +206,7 @@ function sqrt() {/*{{{*/
if ($this->isZero()) {
return true;
} elseif ($this->isNegative()) {
- return PEAR::isError('Cannot take square root of a negative number');
+ return PEAR::raiseError('Cannot take square root of a negative number');
} else {
$newval = gmp_add($this->getValue(), $int->getValue());
if (is_resource($newval)) {

0 comments on commit e956b65

Please sign in to comment.