|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
9 + 24 = ?
Subscribe to this entry?

 [2014-05-09 18:23 UTC] mhenderson at convergesystems dot com
From manual page:

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-09 19:09 UTC]
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-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 15:01:27 2020 UTC