ext/standard/mail.c: Move php_mail_header_value_error_type enum out of header

This commit is contained in:
Gina Peter Bnayard 2024-08-13 00:52:05 +02:00
parent a171b20c7c
commit ebfef2505d
2 changed files with 8 additions and 8 deletions

View file

@ -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;

View file

@ -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 */