PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » XML_RPC » Bug #3363

BC Break in 1.2RC

Details

Submitted2005-02-02 17:21 UTC
Fromsean at caedmon dot net
Assigneddanielc
StatusClosed
PackageXML_RPC
PHP VersionIrrelevant
OSn/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;