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

Reply via email to