Re: [PHP] Re: imap_rfc822_parse_adrlist problem
Hi, On 29 dec 2008, at 08:57, c...@l-i-e.com wrote: File a bug report at http://bugs.php.net You have a pretty clear-cut case of a built-in function gone awry, and it will probably be fixed pretty fast. I also rely on this function quite a bit, so it needs to work right when I end up at 5.2.8 some day :-) I already did that: http://bugs.php.net/bug.php?id=46918 and it has been fixed by fel...@php.net: "This bug has been fixed in CVS." (Thanks!). I was trying to find out if a 5.2.9 release is imminent, but I can't seem to find any sort of roadmap. I'm using php from the ports system in FreeBSD, so using CVS would mean going around that. On 21 dec 2008, at 03:41, Manuel Lemos wrote: on 12/20/2008 09:34 PM Ben Stuyts said the following: Hi, 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. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: imap_rfc822_parse_adrlist problem
Hi, On 21 dec 2008, at 03:41, Manuel Lemos wrote: on 12/20/2008 09:34 PM Ben Stuyts said the following: Hi, 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). 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. Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] imap_rfc822_parse_adrlist problem
Hi, 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: $adds = 'ian eiloart , sh...@example.ac.uk, blobby, "ian,eiloart", <@example.com:f...@example.ac.uk>, f...@#, i...@-example.com, i...@one@two'; $add_arr = imap_rfc822_parse_adrlist($adds, 'example.com'); var_export ($add_arr); I should get: ... 2 => class stdClass { var $mailbox = 'blobby'; var $host = 'example.ac.uk'; }, ... but I get: ... 2 => stdClass::__set_state(array( 'mailbox' => 'blobby', 'host' => 'p?a(', )), ... 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? Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php