From 126a12b398814a76ee08e9c6e565547213ed864f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 9 Sep 2022 16:21:05 +0200 Subject: add patch for PHP 8.2 from https://github.com/php/pecl-numbers-bitset/pull/14 --- bitset-php82.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bitset-php82.patch (limited to 'bitset-php82.patch') diff --git a/bitset-php82.patch b/bitset-php82.patch new file mode 100644 index 0000000..4851cf0 --- /dev/null +++ b/bitset-php82.patch @@ -0,0 +1,25 @@ +From 39a70cb32da68b14a704f8a9c41a911029596e70 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Fri, 9 Sep 2022 16:16:18 +0200 +Subject: [PATCH] Fix __toString prototype with PHP 8.2 + +--- + bitset.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/bitset.c b/bitset.c +index 82765e1..a744d69 100644 +--- a/bitset.c ++++ b/bitset.c +@@ -118,7 +118,11 @@ ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_INFO(arginfo_bitset_xorop, 0) + ZEND_END_ARG_INFO() + ++#if PHP_VERSION_ID >= 80200 ++ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_bitset___tostring, 0, 0, IS_STRING, 0) ++#else + ZEND_BEGIN_ARG_INFO(arginfo_bitset___tostring, 0) ++#endif + ZEND_END_ARG_INFO() + + ZEND_BEGIN_ARG_INFO(arginfo_bitset_getrawvalue, 0) -- cgit