{
$ar = $req->getParam(0);
$sz = $ar->count();
- $first = $ar->arraymem(0);
- $last = $ar->arraymem($sz - 1);
+ //$first = $ar->arraymem(0);
+ $first = $ar[0];
+ //$last = $ar->arraymem($sz - 1);
+ $last = $ar[$sz - 1];
return new PhpXmlRpc\Response(new Value($first->scalarval() .
$last->scalarval(), "string"));
if (isset($_GET['RESPONSE_ENCODING'])) {
$s->response_charset_encoding = $_GET['RESPONSE_ENCODING'];
}
+if (isset($_GET['DETECT_ENCODINGS'])) {
+ PhpXmlRpc\PhpXmlRpc::$xmlrpc_detectencodings = $_GET['DETECT_ENCODINGS'];
+}
if (isset($_GET['EXCEPTION_HANDLING'])) {
$s->exception_handling = $_GET['EXCEPTION_HANDLING'];
}