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 #2372

RPC-Methods inside of classes

Details

Request #2372RPC-Methods inside of classes
Submitted2004-09-22 13:36 UTC
Frommarkus at emedia-solutions-wolf dot de
StatusClosed
PackageXML_RPC
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2004-09-22 13:36 UTC] markus at emedia-solutions-wolf dot de

Description:
------------
To have rpc-methods implemented in classes we need the php-way of handing methods over as parameter in an array.
This is already possible, but to call such method the code below must be patched.

Reproduce code:
---------------
Change line 286 in XML/RPC/Server.php from:
eval('$r=' . $dmap[$methName]['function'] . '($m);');
to:
$r = call_user_func( $dmap[$methName]['function'], $m );

This way methods could be defined inside if serverclasses and set via 'array( class, method )'.

[2004-12-01 00:48 UTC] techtonik at tut dot by

I think that bug was fixed in CVS long ago. You should try CVS version.

[2004-12-30 11:28 UTC] markus at emedia-solutions-wolf dot de

This is done in latest CVS.
So this bug could be closed.