diff options
author | Remi Collet <remi@remirepo.net> | 2022-09-09 16:21:05 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-09-09 16:21:05 +0200 |
commit | 126a12b398814a76ee08e9c6e565547213ed864f (patch) | |
tree | 3277188459a5c5afe574641807699af7ab0a11b3 /bitset-php82.patch | |
parent | cf893604a546035b82b4abd2b808f45d7b21d5fa (diff) |
add patch for PHP 8.2 from
https://github.com/php/pecl-numbers-bitset/pull/14
Diffstat (limited to 'bitset-php82.patch')
-rw-r--r-- | bitset-php82.patch | 25 |
1 files changed, 25 insertions, 0 deletions
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 <remi@remirepo.net> +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) |