From: gggeek Date: Wed, 20 Jan 2016 23:00:19 +0000 (+0000) Subject: remove from the phpxmlrpcval class the support for arrayiterator and countable, in... X-Git-Tag: 4.0.0~1 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=b5c43f5b7cfb41888563711e781d667de04b1d90 remove from the phpxmlrpcval class the support for arrayiterator and countable, in case users were using those functionalities already --- 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