summaryrefslogtreecommitdiffstats
path: root/0001-use-zend_str_tolower-instead-of-php_strtolower.patch
blob: 2c7b5e89220c999d692c39df32f5217bc934a7d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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