X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=blobdiff_plain;f=src%2FEncoder.php;h=ebf3060d4996160c753b6b5d1cf2229eaa73688d;hp=b015115a4a935008e6b3df41f811b56fe799235e;hb=7fbd194478e080d624bab075d189bf3ba215325d;hpb=28a5e586c2c6435e1e0b9459013a92a24f59b9dc diff --git a/src/Encoder.php b/src/Encoder.php index b015115..ebf3060 100644 --- a/src/Encoder.php +++ b/src/Encoder.php @@ -214,8 +214,7 @@ class Encoder // catch "user function", "unknown type" default: // giancarlo pinerolo - // it has to return - // an empty object in case, not a boolean. + // it has to return an empty object in case, not a boolean. $xmlrpcVal = new Value(); break; } @@ -227,6 +226,8 @@ class Encoder * Convert the xml representation of a method response, method request or single * xmlrpc value into the appropriate object (a.k.a. deserialize). * + * Q: is this a good name for this method? It does something quite different from 'decode' after all (returning objects vs returns plain php values)... + * * @param string $xmlVal * @param array $options * @@ -291,7 +292,7 @@ class Encoder } switch ($xmlRpcParser->_xh['rt']) { case 'methodresponse': - $v = &$xmlRpcParser->_xh['value']; + $v = $xmlRpcParser->_xh['value']; if ($xmlRpcParser->_xh['isf'] == 1) { /** @var Value $vc */ $vc = $v['faultCode'];