From 56c80d21dc57cae955c496d7b4bc1f3c388788df Mon Sep 17 00:00:00 2001 From: Remi Collet 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