Skip to content

Commit ca1b775

Browse files
committed
ext/standard/mail.c: Move php_mail_header_value_error_type enum out of header
1 parent 81ad20e commit ca1b775

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ext/standard/mail.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@
5656

5757
extern zend_long php_getuid(void);
5858

59+
typedef enum {
60+
NO_HEADER_ERROR,
61+
CONTAINS_LF_ONLY,
62+
CONTAINS_CR_ONLY,
63+
CONTAINS_CRLF,
64+
CONTAINS_NULL
65+
} php_mail_header_value_error_type;
66+
5967
static php_mail_header_value_error_type php_mail_build_headers_check_field_value(const zend_string *value)
6068
{
6169
size_t len = 0;

ext/standard/php_mail.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,4 @@ PHP_MINFO_FUNCTION(mail);
2222
PHPAPI zend_string *php_mail_build_headers(HashTable *headers);
2323
PHPAPI extern bool php_mail(const char *to, const char *subject, const char *message, const char *headers, const char *extra_cmd);
2424

25-
typedef enum {
26-
NO_HEADER_ERROR,
27-
CONTAINS_LF_ONLY,
28-
CONTAINS_CR_ONLY,
29-
CONTAINS_CRLF,
30-
CONTAINS_NULL
31-
} php_mail_header_value_error_type;
32-
3325
#endif /* PHP_MAIL_H */

0 commit comments

Comments
 (0)