|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-04-17 12:08 UTC] cmb@php.net
[2020-04-17 12:21 UTC] p dot szymkowski at lottestyle dot de
-Status: Open
+Status: Closed
[2020-04-17 12:21 UTC] p dot szymkowski at lottestyle dot de
[2020-04-23 18:37 UTC] andrew dot bent at insuremytrip dot com
[2020-04-30 21:53 UTC] ttijhof at wikimedia dot org
[2020-05-01 09:33 UTC] p dot szymkowski at lottestyle dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 04:00:02 2025 UTC |
Description: ------------ Minor update 7.3.16 -> 7.3.17 changed json_encode() behaviour and it's not documented or mentioned in change log Test script: --------------- <?php $xml = <<<XML <?xml version="1.0" encoding="UTF-8"?> <Response> <Element someAttribute="foo">Bar</Element> </Response> XML; echo json_encode(simplexml_load_string($xml), true); Expected result: ---------------- {"Element":"Bar"} Actual result: -------------- {"Element":{"@attributes":{"someAttribute":"foo"},"0":"Bar"}}