1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 06:51:18 +02:00
Files
archived-php-src/ext/imap/tests/bug45705_2.phpt
Nikita Popov 39131219e8 Migrate more SKIPIF -> EXTENSIONS (#7139)
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
2021-06-11 12:58:44 +02:00

50 lines
1.3 KiB
PHP

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