PHP :: Bug #51008 :: Zend/tests/bug45877.phpt fails
| Bug #51008 | Zend/tests/bug45877.phpt fails | ||||
|---|---|---|---|---|---|
| Submitted: | 2010-02-11 01:54 UTC | Modified: | 2010-10-05 13:29 UTC | ||
| From: | geissert at debian dot org | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 5.3SVN-2010-02-12 | OS: | debian sid | ||
| Private report: | No | CVE-ID: | None | ||
[2010-02-11 01:54 UTC] 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)
}
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-02-12 17:02 UTC] jani@php.net
[2010-02-12 18:58 UTC] geissert at debian dot org
[2010-02-22 23:47 UTC] geissert@php.net
[2010-10-05 13:29 UTC] dmitry@php.net
-Status: Assigned +Status: Closed
[2010-10-05 13:29 UTC] dmitry@php.net