PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Web Services » XML_RPC » Bug #5002

Can't pass derived XML_RPC_Message to Client->send() method

Details

Request #5002Can't pass derived XML_RPC_Message to Client->send() method
Submitted2005-08-05 08:37 UTC
Frommarkus at fischer dot name
Assigneddanielc
StatusClosed
PackageXML_RPC
PHP VersionIrrelevant
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')) {