1--TEST-- 2Bug #80242 (imap_mail_compose() segfaults for multipart with rfc822) 3--EXTENSIONS-- 4imap 5--FILE-- 6<?php 7$bodies = [[ 8 'type' => TYPEMULTIPART, 9], [ 10 'type' => TYPETEXT, 11 'contents.data' => 'some text', 12], [ 13 'type' => TYPEMESSAGE, 14 'subtype' => 'RFC822', 15]]; 16imap_mail_compose([], $bodies); 17echo "done\n"; 18?> 19--EXPECT-- 20done 21