Bug #4782 [Opn->Csd]: Mail_mimePart::addsubpart() - wrong variable in example

From: Date: Sun, 10 Jul 2005 21:48:58 +0000
Subject: Bug #4782 [Opn->Csd]: Mail_mimePart::addsubpart() - wrong variable in example
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-6496@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=4782&edit=1 ID: 4782 Updated by: sean@php.net Reported By: t dot hadek at gmx dot at -Status: Open +Status: Closed Type: Bug Package: Documentation PHP Version: Irrelevant -Assigned To: +Assigned To: sean New Comment: This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. Previous Comments: ------------------------------------------------------------------------ [2005-07-10 11:32:31] t dot hadek at gmx dot at Description: ------------ In the example of PEAR Mail_mimePart::addsubpart() in "Example 44-1. Add two attachments to a mail" the line to add the second attachment uses the wrong variable name ($body) instead of ($attach). wrong line (in example documentation): $attach =& $email->addSubPart($body, $params); should be: $attach =& $email->addSubPart($attach, $params); or: $dummy =& $email->addSubPart($attach, $params); ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=4782&edit=1

« previous php.pear.doc (#6496) next »