Fixed bug #71397 (mb_send_mail segmentation fault)

This commit is contained in:
Yasuo Ohgaki 2016-01-18 09:22:04 +09:00
parent 8052df8110
commit ff10dceff8
2 changed files with 4 additions and 1 deletions

3
NEWS
View File

@ -34,6 +34,9 @@ PHP NEWS
. Fixed bug #71249 (ldap_mod_replace/ldap_mod_add store value as string
"Array"). (Laruence)
- mbsgring:
. Fixed bug #71397 (mb_send_mail segmentation fault). (Yasuo)
- SOAP:
. Fixed bug #70979 (crash with bad soap request). (Anatol)

View File

@ -4145,7 +4145,7 @@ PHP_FUNCTION(mb_send_mail)
suppressed_hdrs.cnt_type = 1;
}
if ((s = zend_hash_str_find_ptr(&ht_headers, "CONTENT-TRANSFER-ENCODING", sizeof("CONTENT-TRANSFER-ENCODING") - 1))) {
if ((s = zend_hash_str_find(&ht_headers, "CONTENT-TRANSFER-ENCODING", sizeof("CONTENT-TRANSFER-ENCODING") - 1))) {
enum mbfl_no_encoding _body_enc;
_body_enc = mbfl_name2no_encoding(Z_STRVAL_P(s));