php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55667 var_export makes -1 in key of array 4294967295
Submitted: 2011-09-11 05:52 UTC Modified: 2011-09-11 14:21 UTC
From: qdinar at gmail dot com Assigned:
Status: Duplicate Package: *General Issues
PHP Version: Irrelevant OS: ubuntu 9.10 x86
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: qdinar at gmail dot com
New email:
PHP Version: OS:

 

 [2011-09-11 05:52 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-11 14:21 UTC] laruence@php.net
-Status: Open +Status: Duplicate
 [2011-09-11 14:21 UTC] laruence@php.net
this is dup to #52534, and have be fixed in PHP 5.3 trunk.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 10:01:29 2024 UTC