Req #42707 [Com]: Add config to iconv_mime_encode not to add the header name.
| From: | narf at bofh dot bg | Date: | Wed, 10 Oct 2012 14:19:31 +0000 |
| Subject: | Req #42707 [Com]: Add config to iconv_mime_encode not to add the header name. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173988@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=42707&edit=1
ID: 42707
Comment by: narf at bofh dot bg
Reported by: frekko at gmail dot com
Summary: Add config to iconv_mime_encode not to add the
header name.
Status: Open
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: gentoo
PHP Version: 5.2.4
Block user comment: N
Private report: N
New Comment:
I too would love to be able to pass e.g. NULL as the field name.
+1
Previous Comments:
------------------------------------------------------------------------
[2007-09-19 09:50:12] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=42707&edit=1