- Add test for bug #45705

This commit is contained in:
Jani Taskinen 2008-08-04 13:45:36 +00:00
parent 4ef68b9627
commit 85d152e233

View file

@ -0,0 +1,20 @@
--TEST--
Bug #45705 (imap_rfc822_parse_adrlist() modifies passed address parameter)
--SKIPIF--
<?php
if (!extension_loaded("imap")) {
die("skip imap extension not available");
}
?>
--FILE--
<?php
$address = 'John Doe <john@example.com>';
var_dump($address);
imap_rfc822_parse_adrlist($address, null);
var_dump($address);
?>
--EXPECT--
string(27) "John Doe <john@example.com>"
string(27) "John Doe <john@example.com>"