--TEST-- Bug #45705 test #2 (imap rfc822_parse_adrlist() modifies passed address parameter) --SKIPIF-- --FILE-- 'John Doe ', 'from' => 'John Doe ', 'reply_to' => 'John Doe ', 'to' => 'John Doe ', 'cc' => 'John Doe ', 'bcc' => 'John Doe ', ); var_dump($envelope); imap_mail_compose($envelope, [1 => ['cc' => 'Steve Doe ',]]); var_dump($envelope); ?> --EXPECT-- array(6) { ["return_path"]=> string(27) "John Doe " ["from"]=> string(27) "John Doe " ["reply_to"]=> string(27) "John Doe " ["to"]=> string(27) "John Doe " ["cc"]=> string(27) "John Doe " ["bcc"]=> string(27) "John Doe " } array(6) { ["return_path"]=> string(27) "John Doe " ["from"]=> string(27) "John Doe " ["reply_to"]=> string(27) "John Doe " ["to"]=> string(27) "John Doe " ["cc"]=> string(27) "John Doe " ["bcc"]=> string(27) "John Doe " }