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
 [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: Fri Mar 29 00:01:28 2024 UTC