summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2001-12-16 11:05:28 +0000
committerDerick Rethans <derick@php.net>2001-12-16 11:05:28 +0000
commitb337bf3f97bd41d67b41f2d79c3ca61d50242de3 (patch)
tree5cdbc6653815afaa8ca87c62cc5ad1ed6b69eb00
parentf63dd3cc7e76fe47f9c581c33f672e115970fdbf (diff)
downloadphp-git-b337bf3f97bd41d67b41f2d79c3ca61d50242de3.tar.gz
MFH for bug #14??? (pow() thing)
-rw-r--r--ext/standard/math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 7eb45ace46..f772525871 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -414,7 +414,7 @@ PHP_FUNCTION(pow)
/* pow(?, float), this is the ^^ case */
convert_to_double_ex(zbase);
- if ( Z_DVAL_PP(zbase) <= 0.0 ) {
+ if (Z_DVAL_PP(zbase) < 0.0) {
/* Note that with the old behaviour, php pow() returned bogus
results. Try pow(-1, 2.5) in PHP <= 4.0.6 ... */
php_error(E_WARNING, "Trying to raise a nonpositive value to a broken power");