Re: [PEPr] Comment on XML::XML_RPC_Simple
| From: | Greg Beaver | Date: | Sat, 10 Apr 2004 17:26:24 +0000 |
| Subject: | Re: [PEPr] Comment on XML::XML_RPC_Simple | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-27401@lists.php.net to get a copy of this message | ||
Guillaume Lecanu wrote:
Le jeu 08/04/2004 à 04:51, PEPr a écrit :// php 5 function __call($method, $args) { $pos = strpos($method, '_'); if ($pos === false) {Greg Beaver (http://pear.php.net/user/cellog) has commented on the proposal for XML::XML_RPC_Simple.Lastly, this should support PHP 5 in __call(), since that is trivial. I stand corrected. This is not trivial. What you should do is provide two classes, XML_RPC_Simple_Client and XML_RPC_Simple_Client5 in separate files. This way, they can be included based on the PHP version
throw new Exception('No class specified');
} $service = substr_replace($method, '.', $pos, 1);
array_unshift($args, $service);
return call_user_func_array(array(&$this, 'service'), $args);
}
Regards,
Greg