more fixes for php 7.2
authorgggeek <giunta.gaetano@gmail.com>
Sat, 7 Apr 2018 00:01:16 +0000 (01:01 +0100)
committergggeek <giunta.gaetano@gmail.com>
Sat, 7 Apr 2018 00:01:16 +0000 (01:01 +0100)
lib/xmlrpc.inc
test/testsuite.php

index 10cb434..7aee62c 100644 (file)
@@ -3230,8 +3230,7 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha
                */\r
                function scalarval()\r
                {\r
-                       reset($this->me);\r
-                       list(,$b)=each($this->me);\r
+                       $b = reset($this->me);\r
                        return $b;\r
                }\r
 \r
index 696138b..a6c5ffb 100644 (file)
@@ -504,7 +504,7 @@ And turned it into nylon';
         }
         else
         {
-            $this->fail('Note: server can only auto register functions if running with PHP 5.0.3 and up');
+            $this->fail();
         }
     }
 
@@ -528,7 +528,7 @@ And turned it into nylon';
         }
         else
         {
-            $this->fail('Note: server can only auto register class methods if running with PHP 5.0.3 and up');
+            $this->fail();
         }
     }