Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_3) / zend.h zend_hash.h zend_operators.h /tests bug45877.phpt php-src NEWS
[email protected] (Antony Dovgal) Wed, 18 Mar 2009 18:51:53 +0300
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <[email protected]> |
The test fails on Linux 64bit:
# cat Zend/tests/bug45877.diff
006+ ["9.2233720368548E+18"]=>
006- ["%d8"]=>
On 18.03.2009 04:08, Matt Wilmas wrote:
> Index: ZendEngine2/tests/bug45877.phpt
> +++ ZendEngine2/tests/bug45877.phpt
> --TEST--
> Bug #45877 (Array key '2147483647' left as string)
> --FILE--
> <?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));
> ?>
> --EXPECTF--
> array(3) {
> [%d7]=>
> int(1)
> [-%d8]=>
> int(1)
> [u"%d8"]=>
> int(1)
> }
>
>
>
--
Wbr,
Antony Dovgal