cvs: php4(PHP_4_0_7) /ext/standard math.c

From: Date: Sun, 16 Dec 2001 11:05:29 +0000
Subject: cvs: php4(PHP_4_0_7) /ext/standard math.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8667@lists.php.net to get a copy of this message
derick Sun Dec 16 06:05:29 2001 EDT Modified files: (Branch: PHP_4_0_7) /php4/ext/standard math.c Log: MFH for bug #14??? (pow() thing) Index: php4/ext/standard/math.c diff -u php4/ext/standard/math.c:1.53.2.4 php4/ext/standard/math.c:1.53.2.5 --- php4/ext/standard/math.c:1.53.2.4 Tue Nov 13 06:27:42 2001 +++ php4/ext/standard/math.c Sun Dec 16 06:05:28 2001 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: math.c,v 1.53.2.4 2001/11/13 11:27:42 jmoore Exp $ */ +/* $Id: math.c,v 1.53.2.5 2001/12/16 11:05:28 derick Exp $ */ #include "php.h" #include "php_math.h" @@ -414,7 +414,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 (#8667) next »