php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #42707 Add config to iconv_mime_encode not to add the header name.
Submitted: 2007-09-19 09:50 UTC Modified: 2018-02-24 17:04 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: frekko at gmail dot com Assigned:
Status: Open Package: ICONV related
PHP Version: 5.2.4 OS: gentoo
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: frekko at gmail dot com
New email:
PHP Version: OS:

 

 [2007-09-19 09:50 UTC] frekko at gmail dot com
Description:
------------
In eZ components we're using iconv_mime_encode to encode header 
values. However, we store the result in a hash headerName => 
headerValue. This leads to funny code like:
$value = iconv_mime_encode( 'dummy', $value, $preferences );
$value = substr( $value, 7 ); // "dummy: " + 1

It would be nice to have a config option to iconv_mime_encode to 
just drop the header name alltogether to avoid hacks like this.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-10 14:19 UTC] narf at bofh dot bg
I too would love to be able to pass e.g. NULL as the field name.
+1
 [2015-09-09 23:42 UTC] cmb@php.net
-Package: Feature/Change Request +Package: ICONV related
 [2018-02-24 17:04 UTC] cmb@php.net
FWIW, there is mb_encode_mimeheader().
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 17 08:03:36 2021 UTC