@@ 289-296 (lines=8) @@ | ||
286 | } |
|
287 | } |
|
288 | // second error check: xml well formed but not xml-rpc compliant |
|
289 | elseif ($xmlRpcParser->_xh['isf'] == 2) { |
|
290 | if ($this->debug) { |
|
291 | /// @todo echo something for user? |
|
292 | } |
|
293 | ||
294 | $r = new Response(0, PhpXmlRpc::$xmlrpcerr['invalid_return'], |
|
295 | PhpXmlRpc::$xmlrpcstr['invalid_return'] . ' ' . $xmlRpcParser->_xh['isf_reason']); |
|
296 | } |
|
297 | // third error check: parsing of the response has somehow gone boink. |
|
298 | // NB: shall we omit this check, since we trust the parsing code? |
|
299 | elseif ($returnType == 'xmlrpcvals' && !is_object($xmlRpcParser->_xh['value'])) { |
@@ 512-516 (lines=5) @@ | ||
509 | $r = new Response(0, |
|
510 | PhpXmlRpc::$xmlrpcerrxml + $matches[1], |
|
511 | $xmlRpcParser->_xh['isf_reason']); |
|
512 | } elseif ($xmlRpcParser->_xh['isf']) { |
|
513 | $r = new Response(0, |
|
514 | PhpXmlRpc::$xmlrpcerr['invalid_request'], |
|
515 | PhpXmlRpc::$xmlrpcstr['invalid_request'] . ' ' . $xmlRpcParser->_xh['isf_reason']); |
|
516 | } else { |
|
517 | // small layering violation in favor of speed and memory usage: |
|
518 | // we should allow the 'execute' method handle this, but in the |
|
519 | // most common scenario (xmlrpc values type server with some methods |