Bug #55667 [Opn->Dup]: var_export makes -1 in key of array 4294967295
| From: | laruence@php.net | Date: | Sun, 11 Sep 2011 14:21:26 +0000 |
| Subject: | Bug #55667 [Opn->Dup]: var_export makes -1 in key of array 4294967295 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163439@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55667&edit=1
ID: 55667
Updated by: laruence@php.net
Reported by: qdinar at gmail dot com
Summary: var_export makes -1 in key of array 4294967295
-Status: Open
+Status: Duplicate
Type: Bug
Package: *General Issues
Operating System: ubuntu 9.10 x86
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
this is dup to #52534, and have be fixed in PHP 5.3 trunk.
Previous Comments:
------------------------------------------------------------------------
[2011-09-11 05:52:02] qdinar at gmail dot com
Description:
------------
var_export makes -1 in key of array 4294967295
i have to set version to irrelevant, but i do not know whether it is indeed irrelevant, i think i
cannot upgrade. php version is 5.2.10.dfsg.1-2ubuntu6.3
Test script:
---------------
$a=array('-1'=>100);
var_export($a);
echo '<br>';
print_r ($a);
echo '<br>';
var_dump($a);
Expected result:
----------------
it should return '-1' or -1 in place of the key
Actual result:
--------------
it returns 4294967295 (instead of -1)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55667&edit=1