|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-22 15:15 UTC] laruence@php.net
[2016-07-22 15:15 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2016-07-22 15:16 UTC] laruence@php.net
[2016-10-17 10:10 UTC] bwoebi@php.net
[2016-10-17 10:10 UTC] bwoebi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Jan 03 02:00:01 2026 UTC |
Description: ------------ Putting an array through xmlrpc_encode() after referencing one or more array elements, results in missing data in the XML output. The referenced elements are excluded. In this case, the 2nd element of the array ("a") is missing. Test script: --------------- <?php $ar = array(4, "a", 7); $v = &$ar[1]; unset($v); echo xmlrpc_encode($ar); Expected result: ---------------- <?xml version="1.0" encoding="utf-8"?> <params> <param> <value> <array> <data> <value> <int>4</int> </value> <value> <string>a</string> </value> <value> <int>7</int> </value> </data> </array> </value> </param> </params> Actual result: -------------- <?xml version="1.0" encoding="utf-8"?> <params> <param> <value> <array> <data> <value> <int>4</int> </value> <value> <int>7</int> </value> </data> </array> </value> </param> </params>