remove one more warning with php 7.2
[plcapi.git] / lib / xmlrpc.inc
index 829a92d..13bcdfc 100644 (file)
        $GLOBALS['xmlrpc_internalencoding']='ISO-8859-1';\r
 \r
        $GLOBALS['xmlrpcName']='XML-RPC for PHP';\r
-       $GLOBALS['xmlrpcVersion']='3.1.1';\r
+       $GLOBALS['xmlrpcVersion']='3.1.2';\r
 \r
        // let user errors start at 800\r
        $GLOBALS['xmlrpcerruser']=800;\r
@@ -2165,7 +2165,7 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha
                        }\r
                }\r
 \r
-                               /**\r
+               /**\r
                * @deprecated\r
                */\r
                function xmlrpcmsg($meth, $pars=0)\r
@@ -2968,7 +2968,7 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha
                }\r
 \r
                // poor man's version of print_r ???\r
-               // DEPRECATED!\r
+               /// @deprecated\r
                function dump($ar)\r
                {\r
                        foreach($ar as $key => $val)\r
@@ -3128,7 +3128,7 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha
                        //}\r
                }\r
 \r
-               // DEPRECATED\r
+               /// @deprecated\r
                function serializeval($o)\r
                {\r
                        // add check? slower, but helps to avoid recursion in serializing broken xmlrpcvals...\r
@@ -3177,19 +3177,20 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha
                * Return next member element for xmlrpcvals of type struct.\r
                * @return xmlrpcval\r
                * @access public\r
+               * @deprecated this will be removed in future versions\r
                */\r
                function structeach()\r
                {\r
-                       return each($this->me['struct']);\r
+                       return @each($this->me['struct']);\r
                }\r
 \r
-               // DEPRECATED! this code looks like it is very fragile and has not been fixed\r
+               // this code looks like it is very fragile and has not been fixed\r
                // for a long long time. Shall we remove it for 2.0?\r
+               /// @deprecated\r
                function getval()\r
                {\r
                        // UNSTABLE\r
                        $b = reset($this->me);\r
-                       $a = key($this->me);\r
                        // contributed by I Sofer, 2001-03-24\r
                        // add support for nested arrays to scalarval\r
                        // i've created a new method here, so as to\r