fixed: encodes boolean and double type values for the requests
[plcapi.git] / 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;