#51008 [Com]: Zend/tests/bug45877.phpt fails
ID: 51008
Comment by: geissert at debian dot org
Reported By: geissert at debian dot org
Status: Feedback
Bug Type: *General Issues
Operating System: debian sid
PHP Version: 5.3.1
New Comment:
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.)
Previous Comments:
------------------------------------------------------------------------
[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)