xref: /PHP-8.3/ext/imap/tests/bug80216.phpt (revision 74859783)
1--TEST--
2Bug #80216 (imap_mail_compose() does not validate types/encodings)
3--EXTENSIONS--
4imap
5--FILE--
6<?php
7imap_mail_compose([], [['type' => TYPEMULTIPART], []]);
8imap_mail_compose([], [['type' => 12]]);
9imap_mail_compose([], [['type' => TYPEMULTIPART], ['type' => 12]]);
10imap_mail_compose([], [['encoding' => 8]]);
11imap_mail_compose([], [['type' => TYPEMULTIPART], ['encoding' => 8]]);
12echo "done\n";
13?>
14--EXPECT--
15done
16