XMLRPC: Replace deprecated constructor (#532)
This commit is contained in:
parent
88073e9816
commit
839d45675c
@ -721,7 +721,7 @@ class XML_RPC_Client extends XML_RPC_Base {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function XML_RPC_Client($path, $server, $port = 0,
|
||||
function __construct($path, $server, $port = 0,
|
||||
$proxy = '', $proxy_port = 0,
|
||||
$proxy_user = '', $proxy_pass = '')
|
||||
{
|
||||
@ -1053,7 +1053,7 @@ class XML_RPC_Response extends XML_RPC_Base
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
function XML_RPC_Response($val, $fcode = 0, $fstr = '')
|
||||
function __construct($val, $fcode = 0, $fstr = '')
|
||||
{
|
||||
if ($fcode != 0) {
|
||||
$this->fn = $fcode;
|
||||
@ -1198,7 +1198,7 @@ class XML_RPC_Message extends XML_RPC_Base
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
function XML_RPC_Message($meth, $pars = 0)
|
||||
function __construct($meth, $pars = 0)
|
||||
{
|
||||
$this->methodname = $meth;
|
||||
if (is_array($pars) && sizeof($pars) > 0) {
|
||||
@ -1557,7 +1557,7 @@ class XML_RPC_Value extends XML_RPC_Base
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
function XML_RPC_Value($val = -1, $type = '')
|
||||
function __construct($val = -1, $type = '')
|
||||
{
|
||||
$this->me = array();
|
||||
$this->mytype = 0;
|
||||
|
@ -325,7 +325,7 @@ class XML_RPC_Server
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function XML_RPC_Server($dispMap, $serviceNow = 1, $debug = 0)
|
||||
function __construct($dispMap, $serviceNow = 1, $debug = 0)
|
||||
{
|
||||
global $HTTP_RAW_POST_DATA;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user