diff options
Diffstat (limited to 'd6f1583ffd408a9bbf1566d49c2bf099fce4e53a.patch')
-rw-r--r-- | d6f1583ffd408a9bbf1566d49c2bf099fce4e53a.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/d6f1583ffd408a9bbf1566d49c2bf099fce4e53a.patch b/d6f1583ffd408a9bbf1566d49c2bf099fce4e53a.patch new file mode 100644 index 0000000..5f7a10b --- /dev/null +++ b/d6f1583ffd408a9bbf1566d49c2bf099fce4e53a.patch @@ -0,0 +1,22 @@ +From d6f1583ffd408a9bbf1566d49c2bf099fce4e53a Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@php.net> +Date: Mon, 24 Aug 2020 09:58:55 +0200 +Subject: [PATCH] avoid "Undefined array key 1" with PHP 8 + +--- + tests/parse_test_messages.phpt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/parse_test_messages.phpt b/tests/parse_test_messages.phpt +index 49573e4..df98741 100644 +--- a/tests/parse_test_messages.phpt ++++ b/tests/parse_test_messages.phpt +@@ -17,7 +17,7 @@ $dir = opendir($testdir) or die("unable to open test dir!"); + $messages = array(); + + while (($f = readdir($dir)) !== false) { +- if ($f == "CVS" || $f == "." || $f == "..") ++ if ($f == "CVS" || $f == "." || $f == ".." || !strpos($f, '.')) + continue; + + list($name, $suffix) = explode(".", $f, 2); |