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

Bug #16997 bad error checking
Submitted: 2010-01-15 10:22 UTC
From: bhuvidya Assigned: till
Status: Closed Package: Mail_Queue (version 1.2.3)
PHP Version: 5.2.5 OS: CentOS 3.4.6-9
Roadmaps: (Not assigned)    

 [2010-01-15 10:22 UTC] bhuvidya (bhu vidya)
Description: ------------ Queue.php i call sendMailsInQueue(), but the call to $this->get() on line 361 returned a Mail_Queue_Error object (because the db failed to open) - but this object is passed without checking to sendMail(), which also doesn't check type and php fails because the call to $mail->getRecipient() on line 433 wasn't expecting a Mail_Queue_Error object.... should be better error checking back in sendMailsInQueue(), and anywhere else Mail_Queue::get() is called


 [2010-01-15 17:45 UTC] till (Till Klampaeckel)
-Status: Open +Status: Closed -Assigned To: +Assigned To: till
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the 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. A fix to this issue has been already committed and will be available with the next release: revision=293552&view=markup