remove from the phpxmlrpcval class the support for arrayiterator and countable, in...
authorgggeek <giunta.gaetano@gmail.com>
Wed, 20 Jan 2016 23:00:19 +0000 (23:00 +0000)
committergggeek <giunta.gaetano@gmail.com>
Wed, 20 Jan 2016 23:00:19 +0000 (23:00 +0000)
lib/xmlrpc.inc

index 0ae42fd..28b47d3 100644 (file)
@@ -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