mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
ext/standard/mail.c: Move php_mail_header_value_error_type enum out of header
This commit is contained in:
parent
a171b20c7c
commit
ebfef2505d
2 changed files with 8 additions and 8 deletions
|
@ -56,6 +56,14 @@
|
||||||
|
|
||||||
extern zend_long php_getuid(void);
|
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)
|
static php_mail_header_value_error_type php_mail_build_headers_check_field_value(zval *val)
|
||||||
{
|
{
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
|
|
|
@ -22,12 +22,4 @@ PHP_MINFO_FUNCTION(mail);
|
||||||
PHPAPI zend_string *php_mail_build_headers(HashTable *headers);
|
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);
|
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 */
|
#endif /* PHP_MAIL_H */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue