PHP server 0.8.0.1 released

2 views
Skip to first unread message

Weston Ruter

unread,
Nov 2, 2007, 6:50:51 PM11/2/07
to JSON/XML-RPC Client and Server Implementations
* Fixed an error where if the last item in the parameter list had an
array provided as the default, the parser would fail.
* Fixed an issue where if a class was specified for a parameter, the
default value would not be parsed.

With these two fixes, the following function may now be added as a
method and work as expected:

function tryDefaultParameters(array $list = array(1,2,3)){
return func_get_args();
}
$service->addMethod("tryDefaultParameters");

If the preceding method is called without supplying any parameters,
then an array (1,2,3) is returned; if a number or a boolean or any
other non-array value is provided, the server will raise an error.

<http://code.google.com/p/json-xml-rpc/>

Reply all
Reply to author
Forward
0 new messages