X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=php%2Fplc_api.php;h=b76b8b3858c3de8d4927aad0ecb21ff3ce1bdfae;hb=e81fb1f3d2c89f2e3951b3c0df975e174ed6545d;hp=3c878bafebdc74f479375cc93500fbbab4b289e7;hpb=70ae1fb8bcca6e47daabf31233499636234d898a;p=plcapi.git diff --git a/php/plc_api.php b/php/plc_api.php index 3c878ba..b76b8b3 100644 --- a/php/plc_api.php +++ b/php/plc_api.php @@ -139,9 +139,6 @@ class PLCAPI $url .= $this->server . ':' . $this->port . '/' . $this->path; curl_setopt($curl, CURLOPT_URL, $url); - // this tentatively allows to tune mainstream xmlrpc php lib - // so as to achieve the same behaviour as with our patched lib - $xmlrpc_null_extension = TRUE; // 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. @@ -244,10 +241,15 @@ class PLCAPI } } +// this tentatively allows to tune mainstream xmlrpc php lib +// so as to achieve the same behaviour as with our patched lib +$GLOBALS['xmlrpc_null_extension'] = true; +$GLOBALS['$xmlrpc_null_apache_encodingn'] = true; + global $adm; $adm = new PLCAPI(array('AuthMethod' => "capability", - 'Username' => PLC_API_MAINTENANCE_USER, + 'Username' => PLC_API_MAINTENANCE_USER, 'AuthString' => PLC_API_MAINTENANCE_PASSWORD)); ?>