#22832 [Opn->Bgs]: imap_rfc822_write_address returns extra "" when no personal

From: Date: Mon, 24 Mar 2003 11:18:39 +0000
Subject: #22832 [Opn->Bgs]: imap_rfc822_write_address returns extra "" when no personal
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36278@lists.php.net to get a copy of this message
ID: 22832 Updated by: sniper@php.net Reported By: marko at oblo dot com -Status: Open +Status: Bogus Bug Type: IMAP related Operating System: FreeBSD 4.7-RELEASE-p6 PHP Version: 4.3.1 New Comment: Yes, the PHP side of the code hasn't changed for a long time. So it's definately c-client problem and not PHP problem. Previous Comments: ------------------------------------------------------------------------ [2003-03-24 05:18:38] sniper@php.net Yes, the PHP side of the code hasn't changed for a long time. So it's definately c-client problem and not PHP problem. ------------------------------------------------------------------------ [2003-03-24 05:16:59] marko at oblo dot com cvs version ok, but won't get a chance to reinstall it for a week or so. c-client phpinfo() says: IMAP c-Client Version 2001 maybe i should try changing c-client version, since looking at the source this morning, i couldn't see anything changed in the function between 4.2.3 and 4.3.1, so it must be something outside php. the call rfc822_write_address() towards the end i presume goes to the c-client? thanks marko ------------------------------------------------------------------------ [2003-03-24 03:21:42] sniper@php.net And it pretty much depends on the c-client version used too.. ------------------------------------------------------------------------ [2003-03-23 19:22:06] iliaa@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip In latest CVS snapshot it appears to return just: marko@oblo.com ------------------------------------------------------------------------ [2003-03-23 15:42:50] marko at oblo dot com In php 4.3.1 the imap_rfc822_write_address() function seems to return extra double quotes "" when there is no personal value. For example: imap_rfc822_write_address('marko', 'oblo.com', '') would output: "" <marko@oblo.com> when in php 4.2.3 it would rightly only output: <marko@oblo.com> Regards, Marko ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22832&edit=1

« previous php.bugs (#36278) next »