diff options
Diffstat (limited to 'upstream.patch')
-rw-r--r-- | upstream.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/upstream.patch b/upstream.patch index 36f1b29..866cdd3 100644 --- a/upstream.patch +++ b/upstream.patch @@ -1,3 +1,30 @@ +From 4fc9970a29c205ec328f36edc8c119c158129324 Mon Sep 17 00:00:00 2001 +From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> +Date: Sun, 4 Feb 2024 19:59:07 +0100 +Subject: [PATCH] Fix #5: Build with php-src master is broken + +--- + php_imap.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/php_imap.c b/php_imap.c +index 38b11b8..df2f8dd 100644 +--- a/php_imap.c ++++ b/php_imap.c +@@ -806,8 +806,13 @@ PHP_FUNCTION(imap_append) + } + + zend_string_release(regex); ++#if PHP_VERSION_ID >= 80400 ++ php_pcre_match_impl(pce, internal_date, return_value, subpats, global, ++ Z_L(0), Z_L(0)); ++#else + php_pcre_match_impl(pce, internal_date, return_value, subpats, global, + 0, Z_L(0), Z_L(0)); ++#endif + + if (!Z_LVAL_P(return_value)) { + // TODO Promoto to error? From 65de3c0c338642a88edf82335a78bb521c8d123a Mon Sep 17 00:00:00 2001 From: Remi Collet <remi@remirepo.net> Date: Thu, 4 Jan 2024 11:35:52 +0100 |