Changeset:
73652a5bd9ee
https://sourceforge.net/p/mrbs/hg-code/ci/73652a5bd9eef23c6c3aa3e8335d428e771e2428
Author:
Campbell Morrison <[email protected]>
Date:
Thu Oct 01 17:19:16 2015 +0100
Log message:
Fixed constructors to prevent Deprecated notices appearing in PHP7
diffstat:
web/Crypt/Blowfish.php | 2 +-
web/Crypt/Blowfish/CBC.php | 2 +-
web/Crypt/Blowfish/DefaultKey.php | 2 +-
web/Crypt/Blowfish/ECB.php | 2 +-
web/Crypt/Blowfish/MCrypt.php | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diffs (60 lines):
diff -r 5b06312b9756 -r 73652a5bd9ee web/Crypt/Blowfish.php
--- a/web/Crypt/Blowfish.php Thu Oct 01 17:09:16 2015 +0100
+++ b/web/Crypt/Blowfish.php Thu Oct 01 17:19:16 2015 +0100
@@ -136,7 +136,7 @@
* @deprecated Since 1.1.0
* @see Crypt_Blowfish::factory()
*/
- function Crypt_Blowfish($key)
+ function __construct($key)
{
$this->_crypt =& Crypt_Blowfish::factory('ecb', $key);
if (!PEAR::isError($this->_crypt)) {
diff -r 5b06312b9756 -r 73652a5bd9ee web/Crypt/Blowfish/CBC.php
--- a/web/Crypt/Blowfish/CBC.php Thu Oct 01 17:09:16 2015 +0100
+++ b/web/Crypt/Blowfish/CBC.php Thu Oct 01 17:19:16 2015 +0100
@@ -59,7 +59,7 @@
* @param string $iv initialization vector
* @access public
*/
- function Crypt_Blowfish_CBC($key = null, $iv = null)
+ function __construct($key = null, $iv = null)
{
$this->__construct($key, $iv);
}
diff -r 5b06312b9756 -r 73652a5bd9ee web/Crypt/Blowfish/DefaultKey.php
--- a/web/Crypt/Blowfish/DefaultKey.php Thu Oct 01 17:09:16 2015 +0100
+++ b/web/Crypt/Blowfish/DefaultKey.php Thu Oct 01 17:19:16 2015 +0100
@@ -36,7 +36,7 @@
var $S = array();
- function Crypt_Blowfish_DefaultKey()
+ function __construct()
{
$this->P = array(
0x243F6A88, 0x85A308D3, 0x13198A2E, 0x03707344,
diff -r 5b06312b9756 -r 73652a5bd9ee web/Crypt/Blowfish/ECB.php
--- a/web/Crypt/Blowfish/ECB.php Thu Oct 01 17:09:16 2015 +0100
+++ b/web/Crypt/Blowfish/ECB.php Thu Oct 01 17:19:16 2015 +0100
@@ -57,7 +57,7 @@
* @param string $iv initialization vector
* @access public
*/
- function Crypt_Blowfish_ECB($key = null, $iv = null)
+ function __construct($key = null, $iv = null)
{
$this->__construct($key, $iv);
}
diff -r 5b06312b9756 -r 73652a5bd9ee web/Crypt/Blowfish/MCrypt.php
--- a/web/Crypt/Blowfish/MCrypt.php Thu Oct 01 17:09:16 2015 +0100
+++ b/web/Crypt/Blowfish/MCrypt.php Thu Oct 01 17:19:16 2015 +0100
@@ -69,7 +69,7 @@
* @param string $iv initialization vector
* @access public
*/
- function Crypt_Blowfish_MCrypt($key = null, $mode = 'ecb', $iv = null)
+ function __construct($key = null, $mode = 'ecb', $iv = null)
{
$this->_iv = $iv . ((strlen($iv) < 8)
? str_repeat(chr(0), 8 - strlen($iv)) : '');
------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits