From ebfef2505d059853bfc19f6a30f9c3d76ac8df13 Mon Sep 17 00:00:00 2001 From: Gina Peter Bnayard Date: Tue, 13 Aug 2024 00:52:05 +0200 Subject: [PATCH] ext/standard/mail.c: Move php_mail_header_value_error_type enum out of header --- ext/standard/mail.c | 8 ++++++++ ext/standard/php_mail.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ext/standard/mail.c b/ext/standard/mail.c index caa5d274ecc..35c23a0be76 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -56,6 +56,14 @@ extern zend_long php_getuid(void); +typedef enum { + NO_HEADER_ERROR, + CONTAINS_LF_ONLY, + CONTAINS_CR_ONLY, + CONTAINS_CRLF, + CONTAINS_NULL +} php_mail_header_value_error_type; + static php_mail_header_value_error_type php_mail_build_headers_check_field_value(zval *val) { size_t len = 0; diff --git a/ext/standard/php_mail.h b/ext/standard/php_mail.h index 6c39343c7cd..c2e22240c48 100644 --- a/ext/standard/php_mail.h +++ b/ext/standard/php_mail.h @@ -22,12 +22,4 @@ PHP_MINFO_FUNCTION(mail); PHPAPI zend_string *php_mail_build_headers(HashTable *headers); PHPAPI extern bool php_mail(const char *to, const char *subject, const char *message, const char *headers, const char *extra_cmd); -typedef enum { - NO_HEADER_ERROR, - CONTAINS_LF_ONLY, - CONTAINS_CR_ONLY, - CONTAINS_CRLF, - CONTAINS_NULL -} php_mail_header_value_error_type; - #endif /* PHP_MAIL_H */