]> granicus.if.org Git - php/commit
Fix #80215: imap_mail_compose() may modify by-val parameters
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 10 Oct 2020 15:16:41 +0000 (17:16 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 10 Oct 2020 21:25:06 +0000 (23:25 +0200)
commit62a2387a8dc262ae75a6575fabddd6170b4bdb07
tree9e8ba11ed165238fe6d71e9b1d371707bc31e358
parent8bee0fbd37c8eee0a17abe4a0afd69ad9ac7105a
Fix #80215: imap_mail_compose() may modify by-val parameters

We separate the input arrays and all sub-arrays to avoid modification
of the passed parameters.

This should be rewritten to use `zend_string`s for the "master" branch.

Closes GH-6316.
NEWS
ext/imap/php_imap.c
ext/imap/tests/bug80215.phpt [new file with mode: 0644]