imap_rfc822_parse_adrlist problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <iane@xxxxxxxxxxxxx>,
       shuf6@xxxxxxxxxxxxx,
       blobby,
       "ian,eiloart"<ian@xxxxxxxxxxxxx>,
       <@example.com:foo@xxxxxxxxxxxxx>,
       foo@#,
       ian@xxxxxxxxxxxx,
       ian@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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux