#46918 [Opn->Csd]: imap_rfc822_parse_adrlist host part not filled in correctly

From: Date: Wed, 24 Dec 2008 11:25:52 +0000
Subject: #46918 [Opn->Csd]: imap_rfc822_parse_adrlist host part not filled in correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132284@lists.php.net to get a copy of this message
 ID:               46918
 Updated by:       felipe@php.net
 Reported By:      ben at altesco dot nl
-Status:           Open
+Status:           Closed
 Bug Type:         IMAP related
 Operating System: FreeBSD 7
 PHP Version:      5.2.8
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




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

[2008-12-21 17:40:31] ben at altesco dot nl

Description:
------------
Since upgrading from php 5.2.6 to php 5.2.8 I have a problem with 
imap_rfc822_parse_adrlist. When I run the example given on the manual 
page at http://nl3.php.net/imap_rfc822_parse_adrlist,
the host part 
sometimes returns junk.


Reproduce code:
---------------
$adds = 'ian eiloart <iane@example.ac.uk>,
      shuf6@example.ac.uk,
      blobby,
      "ian,eiloart"<ian@example.ac.uk>,
      <@example.com:foo@example.ac.uk>,
      foo@#,
      ian@-example.com,
      ian@one@two';
$add_arr = imap_rfc822_parse_adrlist($adds, 'example.com');
var_export ($add_arr);

Expected result:
----------------
...
2 =>
class stdClass {
  var $mailbox = 'blobby';
  var $host = 'example.ac.uk';
},
...


Actual result:
--------------
...
2 =>
stdClass::__set_state(array(
   'mailbox' => 'blobby',
   'host' => 'p?a(',
)),
...



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=46918&edit=1



Thread (2 messages)

« previous php.bugs (#132284) next »