ID: 51008
Updated by: [email protected]
Reported By: geissert at debian dot org
-Status: Open
+Status: Feedback
-Bug Type: Unknown/Other Function
+Bug Type: *General Issues
Operating System: debian sid
PHP Version: 5.3.1
New Comment:
In what kind of environment does it fail? It works fine for me in both
32bit and 64bit systems. (using latest SVN checkout of course :)
Previous Comments:
------------------------------------------------------------------------
[2010-02-11 01:54:21] geissert at debian dot org
Description:
------------
The test fails
Reproduce code:
---------------
<?php
$keys = array(PHP_INT_MAX,
(string) PHP_INT_MAX,
(string) (-PHP_INT_MAX - 1),
-PHP_INT_MAX - 1,
(string) (PHP_INT_MAX + 1));
var_dump(array_fill_keys($keys, 1));
?>
Expected result:
----------------
array(2) {
[2147483647]=>
int(1)
[-2147483648]=>
int(1)
["2147483648"]=>
int(1)
}
Actual result:
--------------
array(2) {
[2147483647]=>
int(1)
[-2147483648]=>
int(1)
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=51008&edit=1