Lines Matching refs:headers
186 PHPAPI zend_string *php_mail_build_headers(zval *headers) in php_mail_build_headers() argument
193 ZEND_ASSERT(Z_TYPE_P(headers) == IS_ARRAY); in php_mail_build_headers()
195 ZEND_HASH_FOREACH_KEY_VAL(HASH_OF(headers), idx, key, val) { in php_mail_build_headers()
291 zval *headers = NULL; in PHP_FUNCTION() local
303 Z_PARAM_ZVAL_DEREF(headers) in PHP_FUNCTION()
311 if (headers) { in PHP_FUNCTION()
312 switch(Z_TYPE_P(headers)) { in PHP_FUNCTION()
314 tmp_headers = zend_string_init(Z_STRVAL_P(headers), Z_STRLEN_P(headers), 0); in PHP_FUNCTION()
320 str_headers = php_mail_build_headers(headers); in PHP_FUNCTION()
469 PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd) in php_mail() argument
480 char *hdr = headers; in php_mail()
486 if (hdr != headers) { \ in php_mail()
529 if (headers != NULL && *headers) { in php_mail()
530 …&hdr, 0, "X-PHP-Originating-Script: " ZEND_LONG_FMT ":%s\n%s", php_getuid(), ZSTR_VAL(f), headers); in php_mail()