From 901285c50c6a7a062ba9835cbdf5eebc7ab3ab47 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Oct 2019 14:42:51 +0200 Subject: - add patch for PHP 7.4 from https://github.com/horde/Crypt_Blowfish/pull/1 - use range dependencies --- 1.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 1.patch (limited to '1.patch') diff --git a/1.patch b/1.patch new file mode 100644 index 0000000..bd2e053 --- /dev/null +++ b/1.patch @@ -0,0 +1,22 @@ +From 4b21f784621330b924f8a4693b7509047339fd30 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 1 Oct 2019 14:33:07 +0200 +Subject: [PATCH] Fix curly braces is deprecated + +--- + lib/Horde/Crypt/Blowfish/Php/Base.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/Horde/Crypt/Blowfish/Php/Base.php b/lib/Horde/Crypt/Blowfish/Php/Base.php +index 1e212bf..3ee9235 100644 +--- a/lib/Horde/Crypt/Blowfish/Php/Base.php ++++ b/lib/Horde/Crypt/Blowfish/Php/Base.php +@@ -328,7 +328,7 @@ public function __construct($key) + for ($i = 0; $i < 18; ++$i) { + $data = 0; + for ($j = 4; $j > 0; --$j) { +- $data = $data << 8 | ord($key{$k}); ++ $data = $data << 8 | ord($key[$k]); + $k = ($k + 1) % $len; + } + $this->_P[$i] ^= $data; -- cgit