#18858 [NEW]: conversion problems with pow() ?

From: Date: Sun, 11 Aug 2002 16:04:52 +0000
Subject: #18858 [NEW]: conversion problems with pow() ?
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16505@lists.php.net to get a copy of this message
From: raz0@worldonline.dk Operating system: Windows 98 SE PHP version: 4.2.0 PHP Bug Type: *Math Functions Bug description: conversion problems with pow() ? I don't know if this is a bug, but it seems that pow() doesn't convert strings to integers like other functions. For instance if you have the variable $_GET['size'] and you try this... <? pow($_GET['size'], 2); ?> ... pow() will produce an error because $_GET['size'] is still a string (I tested var_dump($_GET['size']) and it says it's a string). Hope this helps in the further development of PHP :) -- Edit bug report at http://bugs.php.net/?id=18858&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18858&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18858&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18858&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18858&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18858&r=support Expected behavior: http://bugs.php.net/fix.php?id=18858&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18858&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18858&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18858&r=globals

« previous php.bugs (#16505) next »