Bug #17374: pow fails if either parameter is a string

From: Date: Thu, 23 May 2002 04:19:03 +0000
Subject: Bug #17374: pow fails if either parameter is a string
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8280@lists.php.net to get a copy of this message
From: framling@aros.net Operating system: Linux PHP version: 4.2.1 PHP Bug Type: *Math Functions Bug description: pow fails if either parameter is a string Execute this code: $x="2"; echo pow($x,3); PHP returns "Warning: Invalid argument(s) passed to pow() in /www/default/test.php3 on line 5". "2" should be automatically interpreted as the number 2. This problem didn't occur in version 4.1.2. -- Edit bug report at http://bugs.php.net/?id=17374&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17374&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17374&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17374&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17374&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17374&r=support Expected behavior: http://bugs.php.net/fix.php?id=17374&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17374&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17374&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17374&r=globals

« previous php.bugs (#8280) next »