diff options
author | Remi Collet <remi@remirepo.net> | 2024-09-25 15:54:08 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-09-25 15:54:08 +0200 |
commit | 6b44f0520e7bc3bf4e1009b03fd691f001653546 (patch) | |
tree | cfcf62d9af0e534608e485b891f99916054ae21d /0001-use-zend_str_tolower-instead-of-php_strtolower.patch | |
parent | 6390f505ebb84422e3e7a6014a232804dbbc1267 (diff) |
add upstream patch for PHP 8.4
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.patch | 29 |
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 + |