From: gggeek Date: Fri, 17 Apr 2015 23:02:43 +0000 (+0100) Subject: Fix: php_2_xmlrpc_type is not a public function anymore X-Git-Tag: 4.0.0-alpha^2~82 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=ee97067e0c7de2fc25a0834672f27dcad4468631 Fix: php_2_xmlrpc_type is not a public function anymore --- diff --git a/src/Server.php b/src/Server.php index 8a378c3..2280847 100644 --- a/src/Server.php +++ b/src/Server.php @@ -930,8 +930,9 @@ class Server // base64 or datetime values, but they will be listed as strings here... $numParams = count($call['params']); $pt = array(); + $wrapper = new Wrapper(); foreach ($call['params'] as $val) { - $pt[] = php_2_xmlrpc_type(gettype($val)); + $pt[] = $wrapper->php_2_xmlrpc_type(gettype($val)); } $result = $server->execute($call['methodName'], $call['params'], $pt); diff --git a/src/Wrapper.php b/src/Wrapper.php index 71abda5..0b7663c 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -274,7 +274,7 @@ class Wrapper // syntax: @return type desc //$returns = preg_split('/\s+/', $doc); if (preg_match('/@return\s+(\S+)\s+(.+)/', $doc, $matches)) { - $returns = php_2_xmlrpc_type($matches[1]); + $returns = $this->php_2_xmlrpc_type($matches[1]); if (isset($matches[2])) { $returnsDocs = $matches[2]; }