Bug #16036 Updated: in_array() with pow()
| From: | mfischer@php.net | Date: | Wed, 13 Mar 2002 11:20:58 +0000 |
| Subject: | Bug #16036 Updated: in_array() with pow() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2371@lists.php.net to get a copy of this message | ||
ID: 16036
Updated by: mfischer@php.net
Reported By: goodman888@hongkong.com
-Status: Open
+Status: Bogus
Bug Type: *Math Functions
Operating System: Solaris
PHP Version: 4.1.0
New Comment:
var_dump() _ONLY_ works on variables.
Previous Comments:
------------------------------------------------------------------------
[2002-03-13 06:15:21] goodman888@hongkong.com
$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 this bug report at http://bugs.php.net/?id=16036&edit=1