X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FWrapper.php;h=10aae52eaf6d4842bd6fb433938f597e30e33dd4;hb=fc4f17849d8bb022c3b8ff38a2bed1d1c188ac7f;hp=f7f20721c01bce409f4dd71061e00346ae838691;hpb=2e3b2ac38fb42c0b685a0c345f7f42ac823d7748;p=plcapi.git diff --git a/src/Wrapper.php b/src/Wrapper.php index f7f2072..10aae52 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -822,7 +822,7 @@ class Wrapper $decodeOptions[] = 'decode_php_objs'; } - /// @todo check for insufficient nr. of args besides excess ones + /// @todo check for insufficient nr. of args besides excess ones? note that 'source' version does not... // support one extra parameter: debug $maxArgs = count($mSig)-1; // 1st element is the return type @@ -835,7 +835,6 @@ class Wrapper $xmlrpcArgs = array(); foreach($currentArgs as $i => $arg) { if ($i == $maxArgs) { - /// @todo log warning? check what happens with the 'source' version break; } $pType = $mSig[$i+1]; @@ -882,7 +881,7 @@ class Wrapper * @param string $mDesc * @return array */ - protected function buildWrapMethodSource($client, $methodName, array $extraOptions, $newFuncName, $mSig, $mDesc='') + public function buildWrapMethodSource($client, $methodName, array $extraOptions, $newFuncName, $mSig, $mDesc='') { $timeout = isset($extraOptions['timeout']) ? (int)$extraOptions['timeout'] : 0; $protocol = isset($extraOptions['protocol']) ? $extraOptions['protocol'] : '';