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 --- ef4f39b2149765cac1f9a7bc5a360e09e9e506e6.patch | 201 +++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 ef4f39b2149765cac1f9a7bc5a360e09e9e506e6.patch (limited to 'ef4f39b2149765cac1f9a7bc5a360e09e9e506e6.patch') diff --git a/ef4f39b2149765cac1f9a7bc5a360e09e9e506e6.patch b/ef4f39b2149765cac1f9a7bc5a360e09e9e506e6.patch new file mode 100644 index 0000000..cba330d --- /dev/null +++ b/ef4f39b2149765cac1f9a7bc5a360e09e9e506e6.patch @@ -0,0 +1,201 @@ +From ef4f39b2149765cac1f9a7bc5a360e09e9e506e6 Mon Sep 17 00:00:00 2001 +From: kj +Date: Tue, 27 Aug 2019 08:49:35 +0900 +Subject: [PATCH] Fixed for tests in nightly + +--- + tests/002.phpt | 4 ++- + tests/002_b.phpt | 68 +++++++++++++++++++++++++++++++++++++++++ + tests/005.phpt | 2 ++ + tests/005_b.phpt | 78 ++++++++++++++++++++++++++++++++++++++++++++++++ + 4 files changed, 151 insertions(+), 1 deletion(-) + create mode 100644 tests/002_b.phpt + create mode 100644 tests/005_b.phpt + +diff --git a/tests/002.phpt b/tests/002.phpt +index 5e1f519..adf8509 100644 +--- a/tests/002.phpt ++++ b/tests/002.phpt +@@ -1,8 +1,10 @@ + --TEST-- + Test lz4_compress() function : error conditions + --SKIPIF-- ++=')) die('skip PHP is too old'); + --FILE-- +- ++===Done=== ++--EXPECTF-- ++*** 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 ++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 ++Stack trace: ++#0 %s(%d): lz4_compress(%s) ++#1 {main} ++ ++-- Testing with incorrect parameters -- ++ ++Warning: lz4_compress : expects parameter to be string. in %s on line %d ++bool(false) ++===Done=== +diff --git a/tests/005.phpt b/tests/005.phpt +index 19add34..6133d83 100644 +--- a/tests/005.phpt ++++ b/tests/005.phpt +@@ -1,6 +1,8 @@ + --TEST-- + Test lz4_uncompress() function : error conditions + --SKIPIF-- ++=')) die('skip PHP is too old'); + --FILE-- + ++===DONE=== ++--EXPECTF-- ++*** 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 ++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 ++Stack trace: ++#0 %s(%d): lz4_uncompress(%s) ++#1 {main} ++ ++-- Testing with incorrect arguments -- ++ ++Warning: lz4_uncompress : expects parameter to be string. in %s on line %d ++bool(false) ++ ++Warning: lz4_uncompress : expects parameter to be string. in %s on line %d ++bool(false) ++===DONE=== -- cgit