ID: 51008 Updated by: sni...@php.net Reported By: geissert at debian dot org Status: Open Bug Type: Scripting Engine problem Operating System: debian sid PHP Version: 5.3.1 New Comment:
Possibly same issue as bug #51023 ?? 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] j...@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