xref: /PHP-8.3/ext/imap/tests/bug80213.phpt (revision 74859783)
1--TEST--
2Bug #80213 (imap_mail_compose() segfaults on certain $bodies)
3--EXTENSIONS--
4imap
5--FILE--
6<?php
7$envelope = [];
8$body = [[
9    'type.parameters' => ['param'],
10    'disposition' => ['disp'],
11], [
12    'type.parameters' => ['param'],
13    'disposition' => ['disp'],
14]];
15var_dump(imap_mail_compose($envelope, $body));
16echo "done\n";
17?>
18--EXPECT--
19string(67) "MIME-Version: 1.0
20Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
21
22
23"
24done
25