ID:               35253
 User updated by:  s dot masugata at digicom dot dnp dot co dot jp
 Reported By:      s dot masugata at digicom dot dnp dot co dot jp
-Status:           Feedback
+Status:           Open
 Bug Type:         mbstring related
 Operating System: Solaris8
 PHP Version:      4.4.1
 New Comment:

Attempted to try in php5-200511170730 but the status doesn't change.


Previous Comments:
------------------------------------------------------------------------

[2005-11-17 09:21:34] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip



------------------------------------------------------------------------

[2005-11-17 06:04:38] s dot masugata at digicom dot dnp dot co dot jp

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 this bug report at http://bugs.php.net/?id=35253&edit=1
  • #35253 [Fbk->Opn]: Leng... s dot masugata at digicom dot dnp dot co dot jp

Reply via email to