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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marko at oblo dot com
New email:
PHP Version: OS:

 

 [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: Thu Apr 25 18:02:40 2024 UTC