diff options
Diffstat (limited to 'event-php81.patch')
-rw-r--r-- | event-php81.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/event-php81.patch b/event-php81.patch new file mode 100644 index 0000000..f4144a1 --- /dev/null +++ b/event-php81.patch @@ -0,0 +1,30 @@ +From d4bf4d70181dea17985af1bd52748b0f678a4b8c Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Fri, 11 Jun 2021 12:56:43 +0200 +Subject: [PATCH] Fix deprecated: strlen(): Passing null to parameter... + +--- + tests/29-buffer-pullup.phpt | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/tests/29-buffer-pullup.phpt b/tests/29-buffer-pullup.phpt +index b62b440..32bae4a 100644 +--- a/tests/29-buffer-pullup.phpt ++++ b/tests/29-buffer-pullup.phpt +@@ -14,7 +14,12 @@ foreach ($a as $s) { + $b = new $eventBuffereClass(); + $b->add($s); + $s_pullup = $b->pullup(-1); +- var_dump(strlen($s_pullup) == strlen($s) && $s_pullup == $s); ++ if (is_null($s_pullup)) { ++ // pullup return null when no data availble+ ++ var_dump(empty($s)); ++ } else { ++ var_dump(strlen($s_pullup) == strlen($s) && $s_pullup == $s); ++ } + } + ?> + --EXPECT-- +-- +2.31.1 + |