Skip to content

Commit

Permalink
Modified XML_RPC libraries to work with PHP-7
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Oct 1, 2016
1 parent bb2f394 commit 7124351
Show file tree
Hide file tree
Showing 5 changed files with 1,025 additions and 942 deletions.
2 changes: 1 addition & 1 deletion plugins/spamx/SLVbase.class.php
Expand Up @@ -79,7 +79,7 @@ public function CheckForSpam($post)

$resp = $cli->send($msg, $_SPX_CONF['timeout']);
if (!$resp) {
COM_errorLog('Error communicating with SLV: ' . $cli->errstr
COM_errorLog('Error communicating with SLV: ' . $cli->getErrorString()
. '; Message was ' . $msg->serialize());
} else if ($resp->faultCode()) {
COM_errorLog('Error communicating with SLV. Fault code: '
Expand Down
6 changes: 6 additions & 0 deletions system/classes/Autoload.php
Expand Up @@ -47,6 +47,12 @@ public static function load($className)
/** @noinspection PhpIncludeInspection */
include $path;
}

if (stripos($className, 'XML_RPC_Server') === 0) {
include __DIR__ . DIRECTORY_SEPARATOR . 'XML/RPC/Server.php';
} elseif (stripos($className, 'XML_RPC_') === 0) {
include __DIR__ . DIRECTORY_SEPARATOR . 'XML/RPC.php';
}
}
}

Expand Down

0 comments on commit 7124351

Please sign in to comment.