summaryrefslogtreecommitdiffstats
path: root/a8777ae113732dd18f9cf04d825322f596fedac7.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-11-04 08:21:36 +0100
committerRemi Collet <remi@remirepo.net>2019-11-04 08:21:46 +0100
commitf0a695f028eeeb10be087b5ce5042e5d83d231ba (patch)
treec657cde9fb74d7f0d626808d497f9add6a6d5630 /a8777ae113732dd18f9cf04d825322f596fedac7.patch
parent41646e611e586e3918b7c9e7bde1696fa7899c23 (diff)
v2.5.9
Diffstat (limited to 'a8777ae113732dd18f9cf04d825322f596fedac7.patch')
-rw-r--r--a8777ae113732dd18f9cf04d825322f596fedac7.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/a8777ae113732dd18f9cf04d825322f596fedac7.patch b/a8777ae113732dd18f9cf04d825322f596fedac7.patch
deleted file mode 100644
index 4f2f028..0000000
--- a/a8777ae113732dd18f9cf04d825322f596fedac7.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From a8777ae113732dd18f9cf04d825322f596fedac7 Mon Sep 17 00:00:00 2001
-From: Jan Schneider <jan@horde.org>
-Date: Mon, 13 Feb 2017 14:57:35 +0100
-Subject: [PATCH] Don't use each().
-
-For modern PHP versions there is no improved performance or memory usage compared to foreach() anymore. Beside that it's deprecated in PHP 7.2.
----
- lib/Horde/String.php | 5 ++---
- 1 file changed, 2 insertions(+), 3 deletions(-)
-
-diff --git a/lib/Horde/String.php b/lib/Horde/String.php
-index 26dfcbc..aa8f990 100644
---- a/lib/Horde/String.php
-+++ b/lib/Horde/String.php
-@@ -66,8 +66,7 @@ public static function convertCharset($input, $from, $to, $force = false)
-
- if (is_array($input)) {
- $tmp = array();
-- reset($input);
-- while (list($key, $val) = each($input)) {
-+ foreach ($input as $key => $val) {
- $tmp[self::_convertCharset($key, $from, $to)] = self::convertCharset($val, $from, $to, $force);
- }
- return $tmp;
-@@ -84,7 +83,7 @@ public static function convertCharset($input, $from, $to, $force = false)
-
- $input = clone $input;
- $vars = get_object_vars($input);
-- while (list($key, $val) = each($vars)) {
-+ foreach ($vars as $key => $val) {
- $input->$key = self::convertCharset($val, $from, $to, $force);
- }
- return $input;