Bug #13801 Updated: error in imap_rfc822_parse_adrlist
| From: | thies@php.net | Date: | Fri, 07 Dec 2001 16:48:34 +0000 |
| Subject: | Bug #13801 Updated: error in imap_rfc822_parse_adrlist | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-72862@lists.php.net to get a copy of this message | ||
ID: 13801
Updated by: thies
Reported By: philip.steeman@kh.khbo.be
Old Status: Open
Status: Closed
Bug Type: IMAP related
Operating System: linux
PHP Version: 4.0CVS-2001-10-23
New Comment:
fixed in HEAD and 4.1-branch
Previous Comments:
------------------------------------------------------------------------
[2001-10-23 14:01:21] philip.steeman@kh.khbo.be
The function imap_rfc822_parse_adrlist changes its parameters.
Some code:
<?php
$val = "philip steeman <philip.steeman@kh.khbo.be>";
$rij = imap_rfc822_parse_adrlist($val, "xx.khbo.be");
$philip=fopen("/tmp/philip3.log", "a");
fputs($philip, "$val\n");
fclose($philip);
?>
After calling imap_rfc822_parse_adrlist the value of $val
has changed.
There is a NULL-char between 'steeman' and '<'.
This error occurs in PHP4-CVS-18/10/2001 (23/10 doesn't compile for the moment, so I
couldn't check it).
With PHP 4.0.4pl1 everything is OK.
Philip
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13801&edit=1