From:             narf at bofh dot bg
Operating system: Linux, Ubuntu
PHP version:      Irrelevant
Package:          ICONV related
Bug Type:         Bug
Bug description:iconv_mime_encode() counts field name in the line-length limit

Description:
------------
RFC 2045 specifies that the line-length (an iconv_mime_encode() preference,
default 76) applies to all characters in the header's BODY, excluding the
CRLF.

iconv_mime_encode() however will count the header name (which it doesn't
need to know btw) in it as well. So, if I for example want to create a
Subject header, iconv_mime_encode() will effectively give its first line
the limit of ...:

default length = 76
-
'Subject: ' length = 9
=
67 characters.


-- 
Edit bug report at https://bugs.php.net/bug.php?id=63254&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63254&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63254&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63254&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63254&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63254&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63254&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63254&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63254&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63254&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63254&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63254&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63254&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63254&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63254&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63254&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63254&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63254&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63254&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63254&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63254&r=mysqlcfg

Reply via email to