xref: /PHP-8.0/ext/imap/tests/bug80216.phpt (revision 73e43b6e)
1--TEST--
2Bug #80216 (imap_mail_compose() does not validate types/encodings)
3--SKIPIF--
4<?php
5if (!extension_loaded('imap')) die('skip imap extension not available');
6?>
7--FILE--
8<?php
9imap_mail_compose([], [['type' => TYPEMULTIPART], []]);
10imap_mail_compose([], [['type' => 12]]);
11imap_mail_compose([], [['type' => TYPEMULTIPART], ['type' => 12]]);
12imap_mail_compose([], [['encoding' => 8]]);
13imap_mail_compose([], [['type' => TYPEMULTIPART], ['encoding' => 8]]);
14echo "done\n";
15?>
16--EXPECT--
17done
18