diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-20 19:01:56 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-20 19:02:15 +0200 |
| commit | edd8bd64ba78ac2a22da0fbc04559d9d55d30fa8 (patch) | |
| tree | 2bb0253b93de18cba186e33979d405d27ef80688 /ext/imap/tests | |
| parent | d5f92baad00ce19e096f9936a4ffdcf5c3cd1383 (diff) | |
| parent | 4ef7be20abf565e902ae98490d1878aa384e2356 (diff) | |
| download | php-git-edd8bd64ba78ac2a22da0fbc04559d9d55d30fa8.tar.gz | |
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4:
Fix #80242: imap_mail_compose() segfaults for multipart with rfc822
Diffstat (limited to 'ext/imap/tests')
| -rw-r--r-- | ext/imap/tests/bug80242.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/imap/tests/bug80242.phpt b/ext/imap/tests/bug80242.phpt new file mode 100644 index 0000000000..849e7c6212 --- /dev/null +++ b/ext/imap/tests/bug80242.phpt @@ -0,0 +1,22 @@ +--TEST-- +Bug #80242 (imap_mail_compose() segfaults for multipart with rfc822) +--SKIPIF-- +<?php +if (!extension_loaded('imap')) die('skip imap extension not available'); +?> +--FILE-- +<?php +$bodies = [[ + 'type' => TYPEMULTIPART, +], [ + 'type' => TYPETEXT, + 'contents.data' => 'some text', +], [ + 'type' => TYPEMESSAGE, + 'subtype' => 'RFC822', +]]; +imap_mail_compose([], $bodies); +echo "done\n"; +?> +--EXPECT-- +done |
