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

Bug #10596 Incorrect handling of text and html '0' bodies
Submitted: 2007-04-02 19:17 UTC Modified: 2007-05-05 10:06 UTC
From: toxite Assigned: cipri
Status: Closed Package: Mail_Mime (version 1.3.1)
PHP Version: 5.2.1 OS: any
Roadmaps: 1.4.0, 1.4.0a2    
Subscription  


 [2007-04-02 19:17 UTC] toxite (Charles Lindsay)
Description: ------------ Mail_Mime erroneously uses empty() to determine whether the text and html body parts have been set. As a result, get() incorrectly generates messages that have been supplied the string '0' as either body type, using setTxtBody() or setHTMLBody(). Test script: --------------- <?php include 'Mail/mime.php'; $mime = new Mail_mime(); $mime->setTxtBody('0'); $mime->setHTMLBody('0'); echo $mime->get(); ?> Expected result: ---------------- --=_72b3925ca000a6688aae8a5d18f731d8 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit 0 --=_72b3925ca000a6688aae8a5d18f731d8 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable 0 --=_72b3925ca000a6688aae8a5d18f731d8-- Actual result: -------------- (nothing)

Comments

 [2007-04-05 03:34 UTC] cipri (Cipriano Groenendal)
This bug has been fixed in CVS. 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.
 [2007-05-05 10:06 UTC] cipri (Cipriano Groenendal)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Mail_Mime Fixed in 1.4.0