Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.5

Request #2372 RPC-Methods inside of classes
Submitted: 2004-09-22 13:36 UTC
From: markus at emedia-solutions-wolf dot de Assigned:
Status: Closed Package: XML_RPC
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [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 )'.

Comments

 [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-29 19:34 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [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.