Bug #17744: pow() error

From: Date: Thu, 13 Jun 2002 15:36:23 +0000
Subject: Bug #17744: pow() error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10355@lists.php.net to get a copy of this message
From: filizzi@umich.edu Operating system: Linux 2.4.17 PHP version: 4.2.1 PHP Bug Type: Math related Bug description: pow() error When using the pow() function as follows, where $level_factor and $playerinfo[engines] are 1.5, 0 respectivly. (the value for $playerinfo[engines] can be anywhere from 0 on up and still produce the same result) and $playerinfo[engines] is taken from a mysql database (might happen with other database connections as well). $shipspeed = pow($level_factor, $playerinfo[engines]); when the line is entered staticly (see below) it works fine. $shipspeed = pow(1.5, 0); These are the errors reported. Warning: Invalid argument(s) passed to pow() in /usr/local/blacknova/rsmove.php on line 118 Warning: Invalid argument(s) passed to pow() in /usr/local/blacknova/global_funcs.php on line 421 -- Edit bug report at http://bugs.php.net/?id=17744&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17744&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17744&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17744&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17744&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17744&r=support Expected behavior: http://bugs.php.net/fix.php?id=17744&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17744&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17744&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17744&r=globals

« previous php.bugs (#10355) next »