From 949e6cdb917bf6e60fabe3cf662983e13c644a30 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 22 Sep 2020 15:45:17 +0200 Subject: add patches for PHP 8 from upstream and from https://github.com/kjdev/php-ext-lz4/pull/26 --- 26.patch | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 26.patch (limited to '26.patch') diff --git a/26.patch b/26.patch new file mode 100644 index 0000000..e6a7553 --- /dev/null +++ b/26.patch @@ -0,0 +1,50 @@ +From ffa7fd32ebd7e64a69868cae3ae1059ef33790ab Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Tue, 22 Sep 2020 15:38:38 +0200 +Subject: [PATCH] parameter => argument in 8.0.0beta4 + +--- + tests/002_b.phpt | 4 ++-- + tests/005_b.phpt | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/tests/002_b.phpt b/tests/002_b.phpt +index a56dac8..a2dc434 100644 +--- a/tests/002_b.phpt ++++ b/tests/002_b.phpt +@@ -50,13 +50,13 @@ try { + *** Testing lz4_compress() : error conditions *** + + -- Testing lz4_compress() function with Zero arguments -- +-ArgumentCountError: lz4_compress() expects at least 1 parameter, 0 given in %s:%d ++ArgumentCountError: lz4_compress() expects at least 1 argument, 0 given in %s:%d + Stack trace: + #0 %s(%d): lz4_compress() + #1 {main} + + -- Testing lz4_compress() function with more than expected no. of arguments -- +-ArgumentCountError: lz4_compress() expects at most 3 parameters, 4 given in %s:%d ++ArgumentCountError: lz4_compress() expects at most 3 arguments, 4 given in %s:%d + Stack trace: + #0 %s(%d): lz4_compress(%s) + #1 {main} +diff --git a/tests/005_b.phpt b/tests/005_b.phpt +index afb5158..c212d24 100644 +--- a/tests/005_b.phpt ++++ b/tests/005_b.phpt +@@ -57,13 +57,13 @@ try { + *** Testing lz4_uncompress() : error conditions *** + + -- Testing lz4_uncompress() function with Zero arguments -- +-ArgumentCountError: lz4_uncompress() expects at least 1 parameter, 0 given in %s:%d ++ArgumentCountError: lz4_uncompress() expects at least 1 argument, 0 given in %s:%d + Stack trace: + #0 %s(%d): lz4_uncompress() + #1 {main} + + -- Testing lz4_uncompress() function with more than expected no. of arguments -- +-ArgumentCountError: lz4_uncompress() expects at most 3 parameters, 4 given in %s:%d ++ArgumentCountError: lz4_uncompress() expects at most 3 arguments, 4 given in %s:%d + Stack trace: + #0 %s(%d): lz4_uncompress(%s) + #1 {main} -- cgit