From: gggeek Date: Sat, 7 Apr 2018 00:01:16 +0000 (+0100) Subject: more fixes for php 7.2 X-Git-Tag: 3.1.1~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=13181d488b1e6f5c7b4658b26e6e12005e15a2e8;p=plcapi.git more fixes for php 7.2 --- 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(); } }