git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
====
[plcapi.git]
/
php
/
plc_api.php
diff --git
a/php/plc_api.php
b/php/plc_api.php
index
0c2187e
..
9468c04
100644
(file)
--- a/
php/plc_api.php
+++ b/
php/plc_api.php
@@
-147,7
+147,7
@@
class PLCAPI
$members[$vk] = $this->xmlrpcValue($vv);
}
$members[$vk] = $this->xmlrpcValue($vv);
}
- if (
array_key_exists(0, $value
)) {
+ if (
(array_key_exists(0, $value)) || (empty($value)
)) {
return new PhpXmlRpc\Value(
$members,
'array'
return new PhpXmlRpc\Value(
$members,
'array'
@@
-174,12
+174,7
@@
class PLCAPI
return new PhpXmlRpc\Value($value, 'int');
break;
default:
return new PhpXmlRpc\Value($value, 'int');
break;
default:
- if (empty($value)) {
- return new PhpXmlRpc\Value(null, 'null');
- } else {
- return new PhpXmlRpc\Value($value);
- }
-
+ return new PhpXmlRpc\Value($value);
break;
}
}
break;
}
}
@@
-198,7
+193,11
@@
class PLCAPI
*/
function internal_call_phpxmlrpc($method, $args = NULL, $backtrace_level = 2)
{
*/
function internal_call_phpxmlrpc($method, $args = NULL, $backtrace_level = 2)
{
-
+//
+// echo '<pre>';
+// var_dump($method);
+// var_dump($args);
+// echo '</pre>';
PhpXmlRpc\PhpXmlRpc::$xmlrpc_null_extension = true;
PhpXmlRpc\PhpXmlRpc::$xmlrpc_null_extension = true;