From: rch at online dot lt Operating system: Centos 5.3 PHP version: 5.2.10 PHP Bug Type: ICONV related Bug description: iconv_mime_encode broken by design for some headers
Description: ------------ iconv_mime_encode is supposed to compose and return a string that represents a valid MIME header field. However, headers like To, CC and others with email addresses don't fit into simple $field_name => $field_value scheme. Please note that these arguments may contain user submitted data and would contain any characters. The function should accept extra argument(s) for email addresses, and check/encode characters like "'<> with quoted-printable encoding too, and others if needed, and do not encode ascii strings that should not be encoded. Please see http://www.faqs.org/rfcs/rfc2822 for valid email header syntax. Reproduce code: --------------- --- >From manual page: function.iconv-mime-encode --- -- Edit bug report at http://bugs.php.net/?id=49141&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49141&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49141&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49141&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49141&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49141&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49141&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49141&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49141&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49141&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49141&r=support Expected behavior: http://bugs.php.net/fix.php?id=49141&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49141&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49141&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49141&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49141&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49141&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49141&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49141&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49141&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49141&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49141&r=mysqlcfg