Fixes to make the debugger work
authorgggeek <giunta.gaetano@gmail.com>
Sun, 11 Jan 2015 16:37:51 +0000 (16:37 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sun, 11 Jan 2015 16:37:51 +0000 (16:37 +0000)
debugger/action.php
src/Request.php

index fae2065..00af2a0 100644 (file)
@@ -157,20 +157,20 @@ td form {margin: 0;}
         // fall thru intentionally
       case 'describe':
       case 'wrap':
-        $msg[0] = new $msgclass('system.methodHelp', null, $id);
+        $msg[0] = new $msgclass('system.methodHelp', array(), $id);
         $msg[0]->addparam(new xmlrpcval($method));
-        $msg[1] = new $msgclass('system.methodSignature', null, $id+1);
+        $msg[1] = new $msgclass('system.methodSignature', array(), $id+1);
         $msg[1]->addparam(new xmlrpcval($method));
         $actionname = 'Description of method "'.$method.'"';
         break;
       case 'list':
-        $msg[0] = new $msgclass('system.listMethods', null, $id);
+        $msg[0] = new $msgclass('system.listMethods', array(), $id);
         $actionname = 'List of available methods';
         break;
       case 'execute':
         if (!payload_is_safe($payload))
           die("Tsk tsk tsk, please stop it or I will have to call in the cops!");
-        $msg[0] = new $msgclass($method, null, $id);
+        $msg[0] = new $msgclass($method, array(), $id);
         // hack! build xml payload by hand
         if ($wstype == 1)
         {
index 7051931..7c93a22 100644 (file)
@@ -31,7 +31,7 @@ class Request
         }
     }
 
-    private function xml_header($charset_encoding='')
+    public function xml_header($charset_encoding='')
     {
         if ($charset_encoding != '')
         {
@@ -43,7 +43,7 @@ class Request
         }
     }
 
-    private function xml_footer()
+    public function xml_footer()
     {
         return '</methodCall>';
     }