XMLRPC bug
| From: | Tony Bibbs | Date: | Fri, 18 Jun 2004 20:13:33 +0000 |
| Subject: | XMLRPC bug | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-30908@lists.php.net to get a copy of this message | ||
I'm trying to use PEAR::XML_RPC in a PHP5 application. I have a PHP5
object that I'm trying to encode into a valid XML_RPC_Response using
XML_RPC_Encode but it is not working.
Here is my sample code:
<snip>
require_once 'AEServiceUser.class.php';
$tmp = new AEServiceUser();
$tmp->setAppId('testing');
print_r(XML_RPC_encode($tmp));
</snip>
I got an empty instance of an XML_RPC_Value object with this. I've
looked at the RPC.php code and the problem occurs when trying to iterate
the $php_val object as an array.
To reproduce you can get the code for AEServiceUser from here:
http://cvs.geeklog.net/co.php/Auth_Enterprise/Server/AEServiceUser.class.php
Is this a bug or am I missing something?
--Tony