xref: /PHP-7.3/ext/imap/tests/bug80223.phpt (revision c1962e90)
1--TEST--
2Bug #80223 (imap_mail_compose() leaks envelope on malformed bodies)
3--SKIPIF--
4<?php
5if (!extension_loaded('imap')) die('skip imap extension not available');
6?>
7--FILE--
8<?php
9imap_mail_compose([], []);
10imap_mail_compose([], [1]);
11?>
12--EXPECTF--
13Warning: imap_mail_compose(): body parameter must be a non-empty array in %s on line %d
14
15Warning: imap_mail_compose(): body parameter must be a non-empty array in %s on line %d
16