summaryrefslogtreecommitdiffstats
path: root/0001-use-zend_str_tolower-instead-of-php_strtolower.patch
diff options
context:
space:
mode:
Diffstat (limited to '0001-use-zend_str_tolower-instead-of-php_strtolower.patch')
-rw-r--r--0001-use-zend_str_tolower-instead-of-php_strtolower.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/0001-use-zend_str_tolower-instead-of-php_strtolower.patch b/0001-use-zend_str_tolower-instead-of-php_strtolower.patch
new file mode 100644
index 0000000..2c7b5e8
--- /dev/null
+++ b/0001-use-zend_str_tolower-instead-of-php_strtolower.patch
@@ -0,0 +1,29 @@
+From 56c80d21dc57cae955c496d7b4bc1f3c388788df Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@php.net>
+Date: Wed, 25 Sep 2024 15:20:25 +0200
+Subject: [PATCH] use zend_str_tolower instead of php_strtolower
+
+---
+ package.xml | 2 +-
+ php_mailparse_rfc822.c | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/php_mailparse_rfc822.c b/php_mailparse_rfc822.c
+index 3be2915..3ad872c 100644
+--- a/php_mailparse_rfc822.c
++++ b/php_mailparse_rfc822.c
+@@ -428,7 +428,11 @@ PHP_MAILPARSE_API char *php_rfc822_recombine_tokens(php_rfc822_tokenized_t *toks
+ ret[len] = 0;
+
+ if (flags & PHP_RFC822_RECOMBINE_STRTOLOWER)
++#if PHP_VERSION_ID < 80400
+ php_strtolower(ret, len);
++#else
++ zend_str_tolower(ret, len);
++#endif
+
+ return ret;
+ }
+--
+2.46.1
+