summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2001-12-16 10:59:20 +0000
committerDerick Rethans <derick@php.net>2001-12-16 10:59:20 +0000
commit3709eb6ab2c2164bd2442e70aa408668ef62b496 (patch)
treec73a0c05ded087c71ca888e118149cc868e6951c /ext/standard/math.c
parent424679e9fb81cfc490d99741151a5166bcedd07c (diff)
downloadphp-git-3709eb6ab2c2164bd2442e70aa408668ef62b496.tar.gz
- Fix for bug #14544, bogus warning in pow()
#- I think I do not need to tell who screwed this up....
Diffstat (limited to 'ext/standard/math.c')
-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 66a693a39d..484809982e 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -411,7 +411,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");