File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ PHP NEWS
16
16
- IMAP:
17
17
. Fixed bug #80213 (imap_mail_compose() segfaults on certain $bodies). (cmb)
18
18
. Fixed bug #80215 (imap_mail_compose() may modify by-val parameters). (cmb)
19
+ . Fixed bug #80220 (imap_mail_compose() may leak memory). (cmb)
19
20
20
21
- MySQLnd:
21
22
. Fixed bug #80115 (mysqlnd.debug doesn't recognize absolute paths with
Original file line number Diff line number Diff line change @@ -3726,7 +3726,7 @@ PHP_FUNCTION(imap_mail_compose)
3726
3726
convert_to_string_ex (pvalue );
3727
3727
bod -> md5 = cpystr (Z_STRVAL_P (pvalue ));
3728
3728
}
3729
- } else if (Z_TYPE_P (data ) == IS_ARRAY ) {
3729
+ } else if (Z_TYPE_P (data ) == IS_ARRAY && topbod -> type == TYPEMULTIPART ) {
3730
3730
short type = -1 ;
3731
3731
SEPARATE_ARRAY (data );
3732
3732
if ((pvalue = zend_hash_str_find (Z_ARRVAL_P (data ), "type" , sizeof ("type" ) - 1 )) != NULL ) {
You can’t perform that action at this time.
0 commit comments