xref: /PHP-5.6/Zend/tests/bug45877.phpt (revision c0b00711)
1--TEST--
2Bug #45877 (Array key '2147483647' left as string)
3--INI--
4precision=16
5--FILE--
6<?php
7$keys = array(PHP_INT_MAX,
8	(string) PHP_INT_MAX,
9	(string) (-PHP_INT_MAX - 1),
10	-PHP_INT_MAX - 1,
11	(string) (PHP_INT_MAX + 1));
12
13var_dump(array_fill_keys($keys, 1));
14?>
15--EXPECTF--
16array(3) {
17  [%d7]=>
18  int(1)
19  [-%d8]=>
20  int(1)
21  ["%s"]=>
22  int(1)
23}
24