ID: 46918 Updated by: [email protected] 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 <[email protected]>, [email protected], blobby, "ian,eiloart"<[email protected]>, <@example.com:[email protected]>, f...@#, [email protected], i...@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
