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

Bug #7850 constructor doesn't return PEAR Error Object
Submitted: 2006-06-09 15:01 UTC
From: hkrems at yahoo dot de Assigned: till
Status: Closed Package: Mail_Queue (version 1.1.3)
PHP Version: 5.1.2 OS: Max OS X
Roadmaps: 1.2.3    
Subscription  


 [2006-06-09 15:01 UTC] hkrems at yahoo dot de (Harald Kremsner)
Description: ------------ creating an instance of Mail_Queue with invalid dsn did not return a PEAR Error. Test script: --------------- $db_options['type'] = 'db'; $db_options['dsn'] = 'mysql://user:pass@localhost/test'.'ERROR'; // << generate error $db_options['mail_table'] = 'mail_queue'; $mail_options['driver'] = 'sendmail'; $mail_options['host'] = 'localhost'; $mail_options['port'] = 25; $mail_options['auth'] = false; $mail_queue =& new Mail_Queue($db_options, $mail_options); if(PEAR::isError($mail_queue)) die ($mail_queue->getMessage()); Expected result: ---------------- final words: "Mail Queue Error: Cannot connect to database" Actual result: -------------- PEAR::isError($mail_queue) simply returned FALSE

Comments

 [2006-06-09 15:10 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-06-13 08:02 UTC] hkrems at yahoo dot de
I have tested it with the latest CVS versions (I think): Queue.php,v 1.16 Body.php,v 1.10 Container.php,v 1.9 db.php,v 1.20 the only way to check if there is an error is like if(PEAR::isError($mail_queue->container->db)) { print ('<h1>ERROR</h1>'); }
 [2006-06-13 10:10 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-11-30 12:53 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-04-30 15:20 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-04-30 16:19 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-05-05 08:14 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-05-05 08:20 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-05-05 08:24 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-05-15 12:37 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!