cvs: php4 /ext/standard math.c

From: Date: Sun, 16 Dec 2001 10:59:20 +0000
Subject: cvs: php4 /ext/standard math.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8666@lists.php.net to get a copy of this message
derick Sun Dec 16 05:59:20 2001 EDT Modified files: /php4/ext/standard math.c Log: - Fix for bug #14544, bogus warning in pow() #- I think I do not need to tell who screwed this up.... Index: php4/ext/standard/math.c diff -u php4/ext/standard/math.c:1.66 php4/ext/standard/math.c:1.67 --- php4/ext/standard/math.c:1.66 Tue Dec 11 10:30:33 2001 +++ php4/ext/standard/math.c Sun Dec 16 05:59:20 2001 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: math.c,v 1.66 2001/12/11 15:30:33 sebastian Exp $ */ +/* $Id: math.c,v 1.67 2001/12/16 10:59:20 derick Exp $ */ #include "php.h" #include "php_math.h" @@ -411,7 +411,7 @@ /* 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");

« previous php.cvs (#8666) next »