php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #67239 Keys are re-ordered in associative arrays
Submitted: 2014-05-09 18:23 UTC Modified: 2014-05-09 19:53 UTC
From: mhenderson at convergesystems dot com Assigned:
Status: Closed Package: json (PECL)
PHP Version: 5.5.12 OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mhenderson at convergesystems dot com
New email:
PHP Version: OS:

 

 [2014-05-09 18:23 UTC] mhenderson at convergesystems dot com
Description:
------------
---
From manual page: http://www.php.net/function.json-encode
---

The docs should make note that the keys of an associative array do not retain their defined order.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-09 19:09 UTC] levim@php.net
I've never seen it not preserve the order for encoding; do you have a reproduce case?
 [2014-05-09 19:53 UTC] mhenderson at convergesystems dot com
-Status: Open +Status: Closed
 [2014-05-09 19:53 UTC] mhenderson at convergesystems dot com
I believe that I made a mistake in my testing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 20:01:32 2024 UTC