xref: /PHP-8.2/ext/imap/tests/bug31142_2.phpt (revision 39131219)
1--TEST--
2Bug #31142 test #2 (imap_mail_compose() generates incorrect output)
3--EXTENSIONS--
4imap
5--FILE--
6<?php
7$envelope["from"]= 'host@domain.com';
8$envelope["return_path"]= 'host@domain.com';
9
10$part1["type"]=TYPETEXT;
11$part1["subtype"]="plain";
12$part1["encoding"]=ENCQUOTEDPRINTABLE ;
13$part1["charset"]='iso-8859-2';
14$part1["contents.data"]=imap_8bit('asn řkl');
15
16$body = array($part1);
17
18echo imap_mail_compose($envelope, $body);
19?>
20--EXPECT--
21From: host@domain.com
22MIME-Version: 1.0
23Content-Type: TEXT/plain; CHARSET=iso-8859-2
24Content-Transfer-Encoding: QUOTED-PRINTABLE
25
26asn =C5=99kl
27