|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-12-18 07:10 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 15:00:01 2025 UTC |
4.1.0RC2 "array imap_rfc822_parse_adrlist (string address, string default_host)" The address argument appears to be erroneously passed by reference, and is subsequently mutilated by the function. Hence the following code produces unexpected results. Any subsequent call to imap_rfc822_parse_adrlist() will fail. (This causes major problems with IMP 2.2.6) $a="aaaaa <a@a.a>"; $b="bbbbb <b@b.b>"; $c=$a; imap_rfc822_parse_adrlist($a, "troz"); dump("a:$a\nb:$b\nc:$c\n"); output is: a:aaaaa^@<a@a.a> b:bbbbb <b@b.b> c:aaaaa^@<a@a.a> Note the null character replacing the space between the personal name and mailbox name.