fixed: encodes boolean and double type values for the requests
authorCiro Scognamiglio <c.scognamiglio@cslash.net>
Wed, 24 May 2017 11:09:20 +0000 (13:09 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 29 May 2017 13:15:36 +0000 (15:15 +0200)
php/plc_api.php

index 9764fba..0c2187e 100644 (file)
@@ -160,6 +160,13 @@ class PLCAPI
               }
 
               break;
+          case 'double':
+              return new PhpXmlRpc\Value($value, 'double');
+              break;
+          case 'boolean':
+              return new PhpXmlRpc\Value($value, 'boolean');
+              break;
+          case 'NULL':
           case 'null':
               return new PhpXmlRpc\Value(null, 'null');
               break;