diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 16:28:36 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-10-12 16:28:52 +0200 |
| commit | 216d6a024aeee19a7bd532d0ddaad2a4aff7e097 (patch) | |
| tree | 8d6582eede92e0d50d1e907864807b99465893fd /ext/imap/tests | |
| parent | 4a469c7e9895360a7c605fbb9ea4e062661b666f (diff) | |
| parent | 73e43b6e19720112f0d10bd988d840e7537055a4 (diff) | |
| download | php-git-216d6a024aeee19a7bd532d0ddaad2a4aff7e097.tar.gz | |
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix #80216: imap_mail_compose() does not validate types/encodings
Diffstat (limited to 'ext/imap/tests')
| -rw-r--r-- | ext/imap/tests/bug80216.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ext/imap/tests/bug80216.phpt b/ext/imap/tests/bug80216.phpt new file mode 100644 index 0000000000..ccaf1e1e39 --- /dev/null +++ b/ext/imap/tests/bug80216.phpt @@ -0,0 +1,17 @@ +--TEST-- +Bug #80216 (imap_mail_compose() does not validate types/encodings) +--SKIPIF-- +<?php +if (!extension_loaded('imap')) die('skip imap extension not available'); +?> +--FILE-- +<?php +imap_mail_compose([], [['type' => TYPEMULTIPART], []]); +imap_mail_compose([], [['type' => 12]]); +imap_mail_compose([], [['type' => TYPEMULTIPART], ['type' => 12]]); +imap_mail_compose([], [['encoding' => 8]]); +imap_mail_compose([], [['type' => TYPEMULTIPART], ['encoding' => 8]]); +echo "done\n"; +?> +--EXPECT-- +done |
