ID: 51008 Updated by: geiss...@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 +PHP Version: 5.3SVN-2010-02-12 New Comment:
Indeed. I just checked with the -O0 build and it passes. The affected code in this case is ZEND_HANDLE_NUMERIC in Zend/zend_hash.h Should this one be assigned to somebody in particular? Previous Comments: ------------------------------------------------------------------------ [2010-02-22 18:05:08] sni...@php.net Possibly same issue as bug #51023 ?? ------------------------------------------------------------------------ [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