xref: /PHP-7.3/ext/imap/tests/bug45705_1.phpt (revision 782352c5)
1--TEST--
2Bug #45705 test #1 (imap rfc822_parse_adrlist() modifies passed address parameter)
3--SKIPIF--
4<?php
5	if (!extension_loaded("imap")) {
6		die("skip imap extension not available");
7	}
8?>
9--FILE--
10<?php
11
12$address = 'John Doe <john@example.com>';
13var_dump($address);
14imap_rfc822_parse_adrlist($address, null);
15var_dump($address);
16
17?>
18--EXPECT--
19string(27) "John Doe <john@example.com>"
20string(27) "John Doe <john@example.com>"
21