Home » Web Services » XML_RPC » Bug #5002
Can't pass derived XML_RPC_Message to Client->send() method
Details
| Request #5002 | Can't pass derived XML_RPC_Message to Client->send() method |
|---|---|
| Submitted | 2005-08-05 08:37 UTC |
| From | markus at fischer dot name |
| Assigned | danielc |
| Status | Closed |
| Package | XML_RPC |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-08-05 08:37 UTC] markus at fischer dot name
Description:
------------
I can't pass my own XML_RPC_Message object to the XML_RPC_Client send() method because it checks for the explicit name of the class instead of using the is_a() function.
From the method:
if (strtolower(get_class($msg)) != 'xml_rpc_message') {
should be changed to
if (!is_a($msg, 'XML_RPC_Message')) {