From:             [EMAIL PROTECTED]
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

Reply via email to