Lines Matching refs:val
60 static php_mail_header_value_error_type php_mail_build_headers_check_field_value(zval *val) in php_mail_build_headers_check_field_value() argument
63 zend_string *value = Z_STR_P(val); in php_mail_build_headers_check_field_value()
68 if (*(value->val+len) == '\r') { in php_mail_build_headers_check_field_value()
69 if (*(value->val+len+1) != '\n') { in php_mail_build_headers_check_field_value()
74 && (*(value->val+len+2) == ' ' || *(value->val+len+2) == '\t')) { in php_mail_build_headers_check_field_value()
88 if (*(value->val+len) == '\n') { in php_mail_build_headers_check_field_value()
90 && (*(value->val+len+1) == ' ' || *(value->val+len+1) == '\t')) { in php_mail_build_headers_check_field_value()
96 if (*(value->val+len) == '\0') { in php_mail_build_headers_check_field_value()
111 if (*(key->val+len) < 33 || *(key->val+len) > 126 || *(key->val+len) == ':') { in php_mail_build_headers_check_field_name()
120 static void php_mail_build_headers_elems(smart_str *s, zend_string *key, zval *val);
122 static void php_mail_build_headers_elem(smart_str *s, zend_string *key, zval *val) in php_mail_build_headers_elem() argument
124 switch(Z_TYPE_P(val)) { in php_mail_build_headers_elem()
131 php_mail_header_value_error_type error_type = php_mail_build_headers_check_field_value(val); in php_mail_build_headers_elem()
154 smart_str_appends(s, Z_STRVAL_P(val)); in php_mail_build_headers_elem()
158 php_mail_build_headers_elems(s, key, val); in php_mail_build_headers_elem()
161 …r("Header \"%s\" must be of type array|string, %s given", ZSTR_VAL(key), zend_zval_type_name(val)); in php_mail_build_headers_elem()
166 static void php_mail_build_headers_elems(smart_str *s, zend_string *key, zval *val) in php_mail_build_headers_elems() argument
171 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(val), tmp_key, tmp_val) { in php_mail_build_headers_elems()
190 zval *val; in php_mail_build_headers() local
193 ZEND_HASH_FOREACH_KEY_VAL(headers, idx, key, val) { in php_mail_build_headers()
198 ZVAL_DEREF(val); in php_mail_build_headers()
201 PHP_MAIL_BUILD_HEADER_CHECK("orig-date", s, key, val); in php_mail_build_headers()
203 PHP_MAIL_BUILD_HEADER_CHECK("from", s, key, val); in php_mail_build_headers()
205 PHP_MAIL_BUILD_HEADER_CHECK("sender", s, key, val); in php_mail_build_headers()
207 PHP_MAIL_BUILD_HEADER_CHECK("reply-to", s, key, val); in php_mail_build_headers()
211 PHP_MAIL_BUILD_HEADER_CHECK("cc", s, key, val); in php_mail_build_headers()
213 PHP_MAIL_BUILD_HEADER_CHECK("bcc", s, key, val); in php_mail_build_headers()
215 PHP_MAIL_BUILD_HEADER_CHECK("message-id", s, key, val); in php_mail_build_headers()
217 PHP_MAIL_BUILD_HEADER_CHECK("references", s, key, val); in php_mail_build_headers()
219 PHP_MAIL_BUILD_HEADER_CHECK("in-reply-to", s, key, val); in php_mail_build_headers()
223 PHP_MAIL_BUILD_HEADER_DEFAULT(s, key, val); in php_mail_build_headers()
429 #define MAIL_RET(val) \ in php_mail() argument
433 return val; \ in php_mail()
456 len = spprintf(&tmp, 0, "[%s] %s%s", date_str->val, logline, PHP_EOL); in php_mail()