From 62a2b4dade30d6255bd3cec405f4943f57605e00 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Mon, 13 Mar 2017 12:36:19 +0100 Subject: [PATCH] trying out the hint from github issue https://github.com/gggeek/phpxmlrpc/issues/45 --- php/plc_api.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/php/plc_api.php b/php/plc_api.php index 4bd77a1..ea90a8c 100644 --- a/php/plc_api.php +++ b/php/plc_api.php @@ -142,7 +142,9 @@ class PLCAPI // Marshal the XML-RPC request as a POST variable. is an // extension to the XML-RPC spec that is supported in our custom // version of xmlrpc.so via the 'allow_null' output_encoding key. - $request = xmlrpc_encode_request($method, $args, array('allow_null' => TRUE)); + $request = xmlrpc_encode_request($method, $args, array('null_extension')); + error_log("ENCODED: " . $method . "(" . $args . ")"); + error_log("OBTAINED: " . $request); curl_setopt($curl, CURLOPT_POSTFIELDS, $request); // Construct the HTTP header -- 2.43.0