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