- welcome 2014
[plcapi.git] / debugger / action.php
index f1df960..03a1242 100644 (file)
@@ -1,8 +1,7 @@
 <?php
 /**
- * @version $Id$
  * @author Gaetano Giunta
- * @copyright (C) 2005-2009 G. Giunta
+ * @copyright (C) 2005-2014 G. Giunta
  * @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
  *
  * @todo switch params for http compression from 0,1,2 to values to be used directly
@@ -66,10 +65,10 @@ td form {margin: 0;}
 
     if ($port != "")
     {
-      $client =& new $clientclass($path, $host, $port);
+      $client = new $clientclass($path, $host, $port);
       $server = "$host:$port$path";
     } else {
-      $client =& new $clientclass($path, $host);
+      $client = new $clientclass($path, $host);
       $server = "$host$path";
     }
     if ($protocol == 2)
@@ -81,7 +80,7 @@ td form {margin: 0;}
       $server = 'http://'.$server;
     }
     if ($proxy != '') {
-      $pproxy = split(':', $proxy);
+      $pproxy = explode(':', $proxy);
       if (count($pproxy) > 1)
         $pport = $pproxy[1];
       else
@@ -158,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', null, $id);
         $msg[0]->addparam(new xmlrpcval($method));
-        $msg[1] =& new $msgclass('system.methodSignature', null, $id+1);
+        $msg[1] = new $msgclass('system.methodSignature', null, $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', null, $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, null, $id);
         // hack! build xml payload by hand
         if ($wstype == 1)
         {