Bug #16036: in_array() with pow()
| From: | goodman888 at hongkong dot com | Date: | Wed, 13 Mar 2002 11:15:21 +0000 |
| Subject: | Bug #16036: in_array() with pow() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-2370@lists.php.net to get a copy of this message | ||
From: goodman888@hongkong.com
Operating system: Solaris
PHP version: 4.1.0
PHP Bug Type: *Math Functions
Bug description: in_array() with pow()
$a = pow(2,31);
$b = array($a);
var_dump( in_array(2147483648, $b));
$b = array(2147483648);
var_dump( in_array(2147483648, $b));
// this is the result. how come there are different?
bool(false) bool(true)
--
Edit bug report at http://bugs.php.net/?id=16036&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16036&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16036&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16036&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16036&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16036&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16036&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16036&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16036&r=submittedtwice