ID:               16898
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         *Math Functions
 Operating System: Linux
 PHP Version:      4.2.0
 New Comment:

PHP automagically tries to convert the passed data to a number
representation.

Please paste the exact values you are using to call this pow()


Previous Comments:
------------------------------------------------------------------------

[2002-04-29 06:17:23] [EMAIL PROTECTED]

$result=mysql_query("SELECT id, cdate FROM newspaper WHERE
path='".substr($a, strrpos($a, "/")+1, strlen($a))."'") or die
(mysql_error());
$rec=mysql_fetch_array($result);


$e=pow(2, $rec[id]); //Warning!


it's looks like what pow() function can't convert $rec[id] variable
from string to integer automatically.
Using 

$rec[id]=stettype($rec[id], "int");

helps

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16898&edit=1

Reply via email to