mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
ext/standard/mail.c: Move php_mail_header_value_error_type enum out of header
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user