summaryrefslogtreecommitdiffstats
path: root/2.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-10-01 14:24:43 +0200
committerRemi Collet <remi@remirepo.net>2019-10-01 14:24:43 +0200
commitc794b8926af2a130efd50f46cd944c83d1a09d56 (patch)
treea5f9166086e0f92ad9150765f92af65e4f8ea638 /2.patch
parenta4985fc101a469bc9971b1fd267d9cdebed263e8 (diff)
add patch for PHP 7.4 from https://github.com/horde/Compress/pull/2
Diffstat (limited to '2.patch')
-rw-r--r--2.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/2.patch b/2.patch
new file mode 100644
index 0000000..4cd0097
--- /dev/null
+++ b/2.patch
@@ -0,0 +1,54 @@
+From 8583ea9e308ddc03dacc53679b02ab6cdfe9dd0c Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 1 Oct 2019 14:20:46 +0200
+Subject: [PATCH] Fix curly braces is deprecated
+
+---
+ lib/Horde/Compress/Tnef/Rtf.php | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/lib/Horde/Compress/Tnef/Rtf.php b/lib/Horde/Compress/Tnef/Rtf.php
+index 3b62faf..36cf889 100644
+--- a/lib/Horde/Compress/Tnef/Rtf.php
++++ b/lib/Horde/Compress/Tnef/Rtf.php
+@@ -130,20 +130,20 @@ protected function _decompress()
+ $length_preload = strlen($preload);
+
+ for ($cnt = 0; $cnt < $length_preload; $cnt++) {
+- $uncomp .= $preload{$cnt};
++ $uncomp .= $preload[$cnt];
+ ++$out;
+ }
+
+ while ($out < ($this->_size + $length_preload)) {
+ if (($flag_count++ % 8) == 0) {
+- $flags = ord($this->_data{$in++});
++ $flags = ord($this->_data[$in++]);
+ } else {
+ $flags = $flags >> 1;
+ }
+
+ if (($flags & 1) != 0) {
+- $offset = ord($this->_data{$in++});
+- $length = ord($this->_data{$in++});
++ $offset = ord($this->_data[$in++]);
++ $length = ord($this->_data[$in++]);
+ $offset = ($offset << 4) | ($length >> 4);
+ $length = ($length & 0xF) + 2;
+ $offset = ((int)($out / 4096)) * 4096 + $offset;
+@@ -156,7 +156,7 @@ protected function _decompress()
+ ++$out;
+ }
+ } else {
+- $uncomp .= $this->_data{$in++};
++ $uncomp .= $this->_data[$in++];
+ ++$out;
+ }
+ }
+@@ -363,4 +363,4 @@ protected function _rtfIsPlain($s)
+ return true;
+ }
+
+-}
+\ No newline at end of file
++}