From 13181d488b1e6f5c7b4658b26e6e12005e15a2e8 Mon Sep 17 00:00:00 2001 From: gggeek Date: Sat, 7 Apr 2018 01:01:16 +0100 Subject: [PATCH] more fixes for php 7.2 --- lib/xmlrpc.inc | 3 +-- test/testsuite.php | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/xmlrpc.inc b/lib/xmlrpc.inc index 10cb4345..7aee62cc 100644 --- a/lib/xmlrpc.inc +++ b/lib/xmlrpc.inc @@ -3230,8 +3230,7 @@ xmlrpc_encode_entitites($this->errstr, $GLOBALS['xmlrpc_internalencoding'], $cha */ function scalarval() { - reset($this->me); - list(,$b)=each($this->me); + $b = reset($this->me); return $b; } diff --git a/test/testsuite.php b/test/testsuite.php index 696138b9..a6c5ffb5 100644 --- a/test/testsuite.php +++ b/test/testsuite.php @@ -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(); } } -- 2.47.0