php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22832 imap_rfc822_write_address returns extra "" when no personal
Submitted: 2003-03-23 15:42 UTC Modified: 2003-03-24 05:18 UTC
From: marko at oblo dot com Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.3.1 OS: FreeBSD 4.7-RELEASE-p6
Private report: No CVE-ID: None
 [2003-03-23 15:42 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-23 19:22 UTC] 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-24 03:21 UTC] sniper@php.net
And it pretty much depends on the c-client version used too..

 [2003-03-24 05:16 UTC] 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 05:18 UTC] marko at oblo dot com
ps. oh and if i'm right, that nothing has changed between the two versions and the call goes out of php, then go ahead and close the bug.
 [2003-03-24 05:18 UTC] 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.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 17:01:30 2024 UTC