Hello, on 12/21/2008 11:12 AM Ben Stuyts said the following: >>> Since upgrading 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: >>> ... >>> So the host part isn't filled in correctly. I have verified this on two >>> FreeBSD 7 machines. On an older FreeBSD 5 machine with php4 this works >>> fine. Before the update, I was running php 5.2.6 and there was no >>> problem either. Any ideas? >> >> Sometime ago I decided to not use IMAP library functions to parse e-mail >> addresses because it was not handling all sorts of addresses as it >> should. > > Well, yeah, ok, I read about the problems imap_rfc822_parse_adrlist() > has, but shouldn't it just work at least as advertized in the manual? > Plus, this is breaking an existing application (Twiggi). PHP always had backwards incompatibility breaking problems with new releases. That is why PHP 5 took time to be adopted. Actuall, most ISP were sort of forced to upgrade because the announcement of the end of support to PHP 4 versions. Anyway, if you found a bug, you only need to report it to bugs.php.net to have it checked and hopefully fixed. Since it is related with an external library, maybe it is not PHP fault. PHP has a extensive test suite but I guess you either found a case that is not well tested or it is not understood as a bug. >> Nowadays I use an e-mail address parser class written in pure PHP that >> comes with this MIME parser class: >> >> http://www.phpclasses.org/mimeparser > > Thanks, I'll have a look at that. -- Regards, Manuel Lemos Find and post PHP jobs http://www.phpclasses.org/jobs/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php