@@ -4202,10 +4202,8 @@ PHP_FUNCTION(mb_send_mail)
42024202 size_t i ;
42034203 char * to_r = NULL ;
42044204 char * force_extra_parameters = INI_STR ("mail.force_extra_parameters" );
4205- struct {
4206- int cnt_type :1 ;
4207- int cnt_trans_enc :1 ;
4208- } suppressed_hdrs = { 0 , 0 };
4205+ bool suppress_content_type = false;
4206+ bool suppress_content_transfer_encoding = false;
42094207
42104208 char * p ;
42114209 enum mbfl_no_encoding ;
@@ -4288,7 +4286,7 @@ PHP_FUNCTION(mb_send_mail)
42884286 }
42894287 }
42904288 }
4291- suppressed_hdrs . cnt_type = 1 ;
4289+ suppress_content_type = true ;
42924290 }
42934291
42944292 if ((s = zend_hash_str_find (& ht_headers , "content-transfer-encoding" , sizeof ("content-transfer-encoding" ) - 1 ))) {
@@ -4308,7 +4306,7 @@ PHP_FUNCTION(mb_send_mail)
43084306 body_enc = & mbfl_encoding_8bit ;
43094307 break ;
43104308 }
4311- suppressed_hdrs . cnt_trans_enc = 1 ;
4309+ suppress_content_transfer_encoding = true ;
43124310 }
43134311
43144312 /* To: */
@@ -4393,7 +4391,7 @@ PHP_FUNCTION(mb_send_mail)
43934391 empty = false;
43944392 }
43954393
4396- if (!suppressed_hdrs . cnt_type ) {
4394+ if (!suppress_content_type ) {
43974395 if (!empty ) {
43984396 smart_str_appendl (& str , line_sep , line_sep_len );
43994397 }
@@ -4407,7 +4405,7 @@ PHP_FUNCTION(mb_send_mail)
44074405 empty = false;
44084406 }
44094407
4410- if (!suppressed_hdrs . cnt_trans_enc ) {
4408+ if (!suppress_content_transfer_encoding ) {
44114409 if (!empty ) {
44124410 smart_str_appendl (& str , line_sep , line_sep_len );
44134411 }
0 commit comments