From b5c43f5b7cfb41888563711e781d667de04b1d90 Mon Sep 17 00:00:00 2001 From: gggeek Date: Wed, 20 Jan 2016 23:00:19 +0000 Subject: [PATCH] remove from the phpxmlrpcval class the support for arrayiterator and countable, in case users were using those functionalities already --- lib/xmlrpc.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/xmlrpc.inc b/lib/xmlrpc.inc index 0ae42fd..28b47d3 100644 --- a/lib/xmlrpc.inc +++ b/lib/xmlrpc.inc @@ -136,6 +136,16 @@ class xmlrpcval extends PhpXmlRpc\Value return $b; } + /// reset functionality added by parent class: same as it would happen if no interface was declared + public function count() + { + return 1; + } + + /// reset functionality added by parent class: same as it would happen if no interface was declared + public function getIterator() { + return new ArrayIterator($this); + } } class xmlrpcmsg extends PhpXmlRpc\Request -- 2.43.0