ID: 14575
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: IMAP related
Operating System: Linux 2.4.10 (Debian)
PHP Version: 4.1.0
New Comment:

this has already been fixed in CVS

Previous Comments:
------------------------------------------------------------------------

[2001-12-18 07:02:01] [EMAIL PROTECTED]

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 this 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]

Reply via email to