@@ -4202,10 +4202,8 @@ PHP_FUNCTION(mb_send_mail)
4202
4202
size_t i ;
4203
4203
char * to_r = NULL ;
4204
4204
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;
4209
4207
4210
4208
char * p ;
4211
4209
enum mbfl_no_encoding ;
@@ -4288,7 +4286,7 @@ PHP_FUNCTION(mb_send_mail)
4288
4286
}
4289
4287
}
4290
4288
}
4291
- suppressed_hdrs . cnt_type = 1 ;
4289
+ suppress_content_type = true ;
4292
4290
}
4293
4291
4294
4292
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)
4308
4306
body_enc = & mbfl_encoding_8bit ;
4309
4307
break ;
4310
4308
}
4311
- suppressed_hdrs . cnt_trans_enc = 1 ;
4309
+ suppress_content_transfer_encoding = true ;
4312
4310
}
4313
4311
4314
4312
/* To: */
@@ -4393,7 +4391,7 @@ PHP_FUNCTION(mb_send_mail)
4393
4391
empty = false;
4394
4392
}
4395
4393
4396
- if (!suppressed_hdrs . cnt_type ) {
4394
+ if (!suppress_content_type ) {
4397
4395
if (!empty ) {
4398
4396
smart_str_appendl (& str , line_sep , line_sep_len );
4399
4397
}
@@ -4407,7 +4405,7 @@ PHP_FUNCTION(mb_send_mail)
4407
4405
empty = false;
4408
4406
}
4409
4407
4410
- if (!suppressed_hdrs . cnt_trans_enc ) {
4408
+ if (!suppress_content_transfer_encoding ) {
4411
4409
if (!empty ) {
4412
4410
smart_str_appendl (& str , line_sep , line_sep_len );
4413
4411
}
0 commit comments