From d04385278516cd5cd666b52d9c62c216692cad6b Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 9 Aug 2015 12:26:36 +0100 Subject: [PATCH] php7 compat --- lib/akismet.class.php | 4 ++-- lib/getid3/getid3/getid3.lib.php | 3 +-- lib/securimage/securimage.php | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/akismet.class.php b/lib/akismet.class.php index 84fb2062..3f57c610 100644 --- a/lib/akismet.class.php +++ b/lib/akismet.class.php @@ -124,7 +124,7 @@ class AkismetHttpClient extends AkismetObject { // Constructor - function AkismetHttpClient($host, $blogUrl, $apiKey, $port = 80) { + function __construct($host, $blogUrl, $apiKey, $port = 80) { $this->host = $host; $this->port = $port; $this->blogUrl = $blogUrl; @@ -221,7 +221,7 @@ class Akismet extends AkismetObject { * @param String $apiKey Your wordpress API key * @param String[] $comment A formatted comment array to be examined by the Akismet service */ - function Akismet($blogUrl, $apiKey, $comment) { + function __construct($blogUrl, $apiKey, $comment) { $this->blogUrl = $blogUrl; $this->apiKey = $apiKey; diff --git a/lib/getid3/getid3/getid3.lib.php b/lib/getid3/getid3/getid3.lib.php index 723e2e24..fb677b76 100644 --- a/lib/getid3/getid3/getid3.lib.php +++ b/lib/getid3/getid3/getid3.lib.php @@ -282,7 +282,6 @@ class getid3_lib } } else { throw new Exception('ERROR: Cannot have signed integers larger than '.(8 * PHP_INT_SIZE).'-bits ('.strlen($byteword).') in getid3_lib::BigEndian2Int()'); - break; } } return getid3_lib::CastAsInt($intvalue); @@ -1314,4 +1313,4 @@ class getid3_lib } -?> \ No newline at end of file +?> diff --git a/lib/securimage/securimage.php b/lib/securimage/securimage.php index 87642d7b..7fbef043 100644 --- a/lib/securimage/securimage.php +++ b/lib/securimage/securimage.php @@ -416,7 +416,7 @@ class Securimage { * * */ - function Securimage() + function __construct() { if ( session_id() == '' ) { // no session has been started yet, which is needed for validation session_start();