Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #17025 Mail_mime#headers() bug
Submitted: 2010-01-22 12:57 UTC
From: yasuaki Assigned: alec
Status: Closed Package: Mail_Mime (version 1.5.3)
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: 1.6.0    
Subscription  


 [2010-01-22 12:57 UTC] yasuaki (yasuaki sugino)
Description: ------------ long 'from' value makes Mail_mime#headers() returns wrong result. Test script: --------------- $headers['from'] = 'aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhh'; # over than 76 chars $mime = new Mail_mime(); var_dump($mime->headers($headers)); Expected result: ---------------- array(2) { ["MIME-Version"]=> string(3) "1.0" ["from"]=> string(80) "aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhh" } Actual result: -------------- array(2) { ["MIME-Version"]=> string(3) "1.0" ["from"]=> string(88) "from: aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhh" }

Comments

 [2010-01-22 13:31 UTC] alec (Aleksander Machniak)
-Status: Open +Status: Closed -Assigned To: +Assigned To: alec -Roadmap Versions: +Roadmap Versions: 1.6.0
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.