Permalink
Browse files

XMLRPC: Replace deprecated constructor (#532)

  • Loading branch information...
onli committed Feb 11, 2019
1 parent 88073e9 commit 839d45675cfc4769b3ec68d542b3c91af81e6dcd
Showing with 5 additions and 5 deletions.
  1. +4 −4 bundled-libs/XML/RPC.php
  2. +1 −1 bundled-libs/XML/RPC/Server.php
@@ -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;

0 comments on commit 839d456

Please sign in to comment.