X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=php%2Fphpxmlrpc%2Flib%2Fxmlrpc_wrappers.inc;h=4331c360103e3dac5e6664a999d75eeea23690b6;hb=c379c0fff5edc592cc5d5d647c7fadb91317db87;hp=cec33742a9d60caf88c1e84b903af16dc720e6d8;hpb=ae8b10f8363f7a1df02e77cbd820904c4ded10b8;p=plcapi.git diff --git a/php/phpxmlrpc/lib/xmlrpc_wrappers.inc b/php/phpxmlrpc/lib/xmlrpc_wrappers.inc index cec33742..4331c360 100644 --- a/php/phpxmlrpc/lib/xmlrpc_wrappers.inc +++ b/php/phpxmlrpc/lib/xmlrpc_wrappers.inc @@ -87,7 +87,7 @@ function wrap_php_class($className, $extraOptions=array()) * @see PhpXmlRpc\Wrapper::wrapXmlrpcMethod * @param xmlrpc_client $client * @param string $methodName - * @param int|array $extraOptions the usage of an int as signature number is deprecated, use an option in $extraOptions + * @param int|array $extraOptions the usage of an int as signature number is deprecated, use an option 'signum' in $extraOptions * @param int $timeout deprecated, use an option in $extraOptions * @param string $protocol deprecated, use an option in $extraOptions * @param string $newFuncName deprecated, use an option in $extraOptions @@ -112,8 +112,10 @@ function wrap_xmlrpc_method($client, $methodName, $extraOptions=0, $timeout=0, $ // backwards compat: return string instead of callable $extraOptions['return_source'] = true; $wrapped = $wrapper->wrapXmlrpcMethod($client, $methodName, $extraOptions); - eval($wrapped['source']); - $wrapped = $wrapped['function']; + if (is_array($wrapped)) { + eval($wrapped['source']); + $wrapped = $wrapped['function']; + } } else { $wrapped = $wrapper->wrapXmlrpcMethod($client, $methodName, $extraOptions); }