#51008 [Fbk->Opn]: Zend/tests/bug45877.phpt fails
ID: 51008
Updated by: jani@php.net
Reported By: geissert at debian dot org
-Status: Feedback
+Status: Open
-Bug Type: *General Issues
+Bug Type: Scripting Engine problem
Operating System: debian sid
PHP Version: 5.3.1
Previous Comments:
------------------------------------------------------------------------
[2010-02-12 18:58:42] geissert at debian dot org
It fails for me with 5.3.1 on i686, ia64, s390, alpha, powerpc, x86_64,
etc. Even on those running kfreebsd.
It also fails with the latest 5.3 svn on ia64 (haven't built it on any
other arch.)
------------------------------------------------------------------------
[2010-02-12 17:02:47] jani@php.net
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 :)
------------------------------------------------------------------------
[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
Thread (10 messages)