Bug #14575 Updated: inappropriate pass by reference?
| From: | hholzgra@php.net | Date: | Tue, 18 Dec 2001 12:10:53 +0000 |
| Subject: | Bug #14575 Updated: inappropriate pass by reference? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74234@lists.php.net to get a copy of this message | ||
ID: 14575
Updated by: hholzgra
Reported By: krei+public@it.net.au
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] krei+public@it.net.au
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.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14575&edit=1