git: e85832720f02 - main - databases/pecl-redis: php8.1 PHP Fatal error: Arginfo / zpp mismatch during call of Redis::pconnect()

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Wed, 12 Jul 2023 13:39:32 UTC
The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e85832720f02bd37c3f9ebe5e97ae648798b6922

commit e85832720f02bd37c3f9ebe5e97ae648798b6922
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2023-07-12 13:32:11 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2023-07-12 13:32:11 +0000

    databases/pecl-redis: php8.1 PHP Fatal error: Arginfo / zpp mismatch during call of Redis::pconnect()
    
    Without patch port doesn't work with PHP 8.1 and probably with 8.0, 8.2 and 8.3 too.
    Upstream issue: https://github.com/phpredis/phpredis/issues/2041
    
    PR:                     272451
    Approved by:            Daniel Ylitalo <daniel@blodan.se> (maintainer), arrowd (mentor)
    Obtained from:          https://github.com/phpredis/phpredis/issues/2041
    Differential Revision:  https://reviews.freebsd.org/D40984
    MFH:                    2023Q3
---
 databases/pecl-redis/files/patch-redis.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/databases/pecl-redis/files/patch-redis.c b/databases/pecl-redis/files/patch-redis.c
new file mode 100644
index 000000000000..68a2dc1488f4
--- /dev/null
+++ b/databases/pecl-redis/files/patch-redis.c
@@ -0,0 +1,12 @@
+--- redis.c.orig	2022-02-15 18:25:22 UTC
++++ redis.c
+@@ -154,6 +154,9 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_pconnect, 0, 0, 1)
+     ZEND_ARG_INFO(0, host)
+     ZEND_ARG_INFO(0, port)
+     ZEND_ARG_INFO(0, timeout)
++    ZEND_ARG_INFO(0, persistent_id)
++    ZEND_ARG_INFO(0, retry_interval)
++    ZEND_ARG_INFO(0, read_timeout)
+ ZEND_END_ARG_INFO()
+ 
+ ZEND_BEGIN_ARG_INFO_EX(arginfo_mget, 0, 0, 1)