note 87642 added to function.xmlrpc-encode

From: Date: Sun, 14 Dec 2008 02:22:27 +0000
Subject: note 87642 added to function.xmlrpc-encode
Groups: php.notes 
Request: Send a blank email to php-notes+get-148144@lists.php.net to get a copy of this message
QUOTE from anonymous: "Another quirk (more of a bug i think) is the automatic encoding of hashes where all keys that begin with a digit between 1 and 9 are lost: http://bugs.php.net/bug.php?id=37746 Luckily I found a quick workaround. Just append chr(0x00) to your keys and the xmlrpc response will be correct. Maybe this will apply to encoding of hashes for requests too." Yes, that is definitely worth noting! However, it is certainly not a bug. Check out the XML spec from w3c (creators of XML), or this simple explanation from w3schools: http://www.w3schools.com/XML/xml_elements.asp "[XML Element] Names must not start with a number or punctuation character" ... So apparently XML-RPC-EPI is only generating well-formed XML - which is a GOOD thing, because of course the receiving server should discard the document if it's not well-formed. What is probably a bug isn't the fact that it's discarding elements, but that it's not issuing a notice upon doing so...? ---- Server IP: 69.147.83.197 Probable Submitter: 125.236.211.165 ---- Manual Page -- http://www.php.net/manual/en/function.xmlrpc-encode.php Edit -- https://master.php.net/note/edit/87642 Del: integrated -- https://master.php.net/note/delete/87642/integrated Del: useless -- https://master.php.net/note/delete/87642/useless Del: bad code -- https://master.php.net/note/delete/87642/bad+code Del: spam -- https://master.php.net/note/delete/87642/spam Del: non-english -- https://master.php.net/note/delete/87642/non-english Del: in docs -- https://master.php.net/note/delete/87642/in+docs Del: other reasons-- https://master.php.net/note/delete/87642 Reject -- https://master.php.net/note/reject/87642 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148144) next »