Home » Web Services » XML_RPC » Bug #3363
BC Break in 1.2RC
Details
| Submitted | 2005-02-02 17:21 UTC |
|---|---|
| From | sean at caedmon dot net |
| Assigned | danielc |
| Status | Closed |
| Package | XML_RPC |
| PHP Version | Irrelevant |
| OS | n/a |
| Roadmaps | (Not assigned) |
Comments
[2005-02-02 17:21 UTC] sean at caedmon dot net
Description:
------------
In XML_RPC (Server) 1.1, I was able to do the following:
new XML_RPC_Server(array('example.foo' => array('function'=>'FooClass::FooMethod', 1);
In 1.2RC, I must do:
new XML_RPC_Server(array('example.foo' => array('function'=>array('FooClass','FooMethod'), 1);
Obviously, this new way is more "proper", but it's a BC Break.
Reproduce code:
---------------
Pseudo-Patch (sorry, I don't have time to look at the code, right now. If you'd like, I'll patch (& commit) later)
$functionName = !is_array($functionName) && strpos($functionName, '::') ? explode('::', $functionName) : $functionName;