From: s dot masugata at digicom dot dnp dot co dot jp Operating system: Solaris8 PHP version: 4.4.1 PHP Bug Type: mbstring related Bug description: Length of the encoded character string violates a RFC.
Description: ------------ Length of the encoded character string violates a RFC. It violates a RFC when encoding a character string using the mb_encode_mimeheader function. As for the e-mail header, the total of the field identifier, the field value and the line feed character is defined as being less than 76 characters. It processes mb_encode_mimeheader function only using the field value. Therefore, the field length at the head violates a RFC. Reproduce code: --------------- <?php declare( encoding="EUC-JP" ); $A = " ". " "; $encode = mb_encode_mimeheader( $A, "EUC-JP", "B" ); mail ( "[EMAIL PROTECTED]", $encode, "TEST" ); ?> -- Edit bug report at http://bugs.php.net/?id=35253&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35253&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35253&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35253&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35253&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35253&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35253&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35253&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35253&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35253&r=support Expected behavior: http://bugs.php.net/fix.php?id=35253&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35253&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35253&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35253&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35253&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35253&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35253&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35253&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35253&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35253&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35253&r=mysqlcfg