note 68847 rejected from function.xmlrpc-decode by betz

From: Date: Sun, 13 Aug 2006 13:19:12 +0000
Subject: note 68847 rejected from function.xmlrpc-decode by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-115864@lists.php.net to get a copy of this message
Note Submitter: schow at macnexus dot org ---- The return type for xmlrpc_decode and xmlrpc_decode_request should really be "mixed" and not "array." If the service return is an array, struct, or multiple values, then yes, an array is returned. However, if just one scalar value is returned like so: <?xml version="1.0"?> <methodResponse> <params> <param><value><string>Hello!</string></value></param> </params> </methodResponse> xmlrpc_decode will return just one string ("Hello!"). You can try echoing this out versus a response with a struct/array/multiples to verify. Those response will just print out "Array."

« previous php.notes (#115864) next »