Skip to content

Commit

Permalink
System / High Availability - fix for https://forum.opnsense.org/index…
Browse files Browse the repository at this point in the history
….php?topic=29521.0, IXR_Library using incorrect constructor format for php 8
  • Loading branch information
AdSchellevis committed Jul 29, 2022
1 parent 86ebdc2 commit 65ceba4
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions contrib/IXR/IXR_Library.php
Expand Up @@ -44,7 +44,7 @@ class IXR_Value
var $data;
var $type;

function IXR_Value($data, $type = false)
function __construct($data, $type = false)
{
$this->data = $data;
if (!$type) {
Expand Down Expand Up @@ -188,7 +188,7 @@ class IXR_Message
// The XML parser
var $_parser;

function IXR_Message($message)
function __construct($message)
{
$this->message =& $message;
}
Expand Down Expand Up @@ -346,7 +346,7 @@ class IXR_Server
var $message;
var $capabilities;

function IXR_Server($callbacks = false, $data = false, $wait = false)
function __construct($callbacks = false, $data = false, $wait = false)
{
$this->setCapabilities();
if ($callbacks) {
Expand Down Expand Up @@ -549,7 +549,7 @@ class IXR_Request
var $args;
var $xml;

function IXR_Request($method, $args)
function __construct($method, $args)
{
$this->method = $method;
$this->args = $args;
Expand Down Expand Up @@ -601,7 +601,7 @@ class IXR_Client
// Storage place for an error message
var $error = false;

function IXR_Client($server, $path = false, $port = 80, $timeout = 15)
function __construct($server, $path = false, $port = 80, $timeout = 15)
{
if (!$path) {
// Assume we have been given a URL instead
Expand Down Expand Up @@ -742,7 +742,7 @@ class IXR_Error
var $code;
var $message;

function IXR_Error($code, $message)
function __construct($code, $message)
{
$this->code = $code;
$this->message = htmlspecialchars($message);
Expand Down Expand Up @@ -788,7 +788,7 @@ class IXR_Date {
var $second;
var $timezone;

function IXR_Date($time)
function __construct($time)
{
// $time can be a PHP timestamp or an ISO one
if (is_numeric($time)) {
Expand Down Expand Up @@ -846,7 +846,7 @@ class IXR_Base64
{
var $data;

function IXR_Base64($data)
function __construct($data)
{
$this->data = $data;
}
Expand All @@ -868,7 +868,7 @@ class IXR_IntrospectionServer extends IXR_Server
var $signatures;
var $help;

function IXR_IntrospectionServer()
function __construct()
{
$this->setCallbacks();
$this->setCapabilities();
Expand Down Expand Up @@ -1030,7 +1030,7 @@ class IXR_ClientMulticall extends IXR_Client
{
var $calls = array();

function IXR_ClientMulticall($server, $path = false, $port = 80)
function __construct($server, $path = false, $port = 80)
{
parent::IXR_Client($server, $path, $port);
$this->useragent = 'The Incutio XML-RPC PHP Library (multicall client)';
Expand Down Expand Up @@ -1101,7 +1101,7 @@ class IXR_ClientSSL extends IXR_Client
* @param string $server URL of the Server to connect to
* @since 0.1.0
*/
function IXR_ClientSSL($server, $path = false, $port = 443, $timeout = false)
function __construct($server, $path = false, $port = 443, $timeout = false)
{
parent::IXR_Client($server, $path, $port, $timeout);
$this->useragent = 'The Incutio XML-RPC PHP Library for SSL';
Expand Down Expand Up @@ -1291,7 +1291,7 @@ class IXR_ClassServer extends IXR_Server
var $_objects;
var $_delim;

function IXR_ClassServer($delim = '.', $wait = false)
function __construct($delim = '.', $wait = false)
{
$this->IXR_Server(array(), false, $wait);
$this->_delimiter = $delim;
Expand Down

0 comments on commit 65ceba4

Please sign in to comment.