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
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: 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-2019 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 11:01:25 2019 UTC