From: [EMAIL PROTECTED] Operating system: Linux 2.4.10 (Debian) PHP version: 4.1.0 PHP Bug Type: IMAP related Bug description: inappropriate pass by reference?
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 <[EMAIL PROTECTED]>"; $b="bbbbb <[EMAIL PROTECTED]>"; $c=$a; imap_rfc822_parse_adrlist($a, "troz"); dump("a:$a\nb:$b\nc:$c\n"); output is: a:aaaaa^@<[EMAIL PROTECTED]> b:bbbbb <[EMAIL PROTECTED]> c:aaaaa^@<[EMAIL PROTECTED]> Note the null character replacing the space between the personal name and mailbox name. -- Edit bug report at: http://bugs.php.net/?id=14575&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]