From owner-freebsd-ports@FreeBSD.ORG Fri Dec 19 17:28:20 2008 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90C601065670 for ; Fri, 19 Dec 2008 17:28:20 +0000 (UTC) (envelope-from ben@altesco.nl) Received: from altus-escon.com (altesco.xs4all.nl [82.95.106.39]) by mx1.freebsd.org (Postfix) with ESMTP id 22BD68FC0C for ; Fri, 19 Dec 2008 17:28:19 +0000 (UTC) (envelope-from ben@altesco.nl) Received: from giskard.altus-escon.com (giskard.altus-escon.com [193.78.231.1]) by altus-escon.com (8.14.2/8.14.2) with ESMTP id mBJH4xOI020798 for ; Fri, 19 Dec 2008 18:05:04 +0100 (CET) (envelope-from ben@altesco.nl) Message-Id: From: Ben Stuyts To: ports@freebsd.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Fri, 19 Dec 2008 18:04:58 +0100 X-Mailer: Apple Mail (2.930.3) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (altus-escon.com [193.78.231.142]); Fri, 19 Dec 2008 18:05:05 +0100 (CET) X-Virus-Scanned: ClamAV 0.94.1/8786/Fri Dec 19 11:30:31 2008 on mars.altus-escon.com X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=3.5 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mars.altus-escon.com Cc: Subject: php imap_rfc822_parse_adrlist problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2008 17:28:20 -0000 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 , shuf6@example.ac.uk, blobby, "ian,eiloart", <@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); 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