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

Bug #14626 array container configuration doesn't work while dns does
Submitted: 2008-09-09 22:35 UTC
From: qadro Assigned: quipo
Status: Closed Package: Mail_Queue (version 1.2.2)
PHP Version: 5.1.6 OS: GNU/Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 18 + 36 = ?

 
 [2008-09-09 22:35 UTC] qadro (Marcin Sieniek)
Description: ------------ when I create a mail_queue using: new Mail_Queue($containerOptions, $mailOptions); result depends on the way I defined configuration values (in this example $containerOptions), although manual says both ways are equivalent. Test script: --------------- $containerOptions['type'] = 'db'; $containerOptions['mail_table'] = 'mail_queue'; $containerOptions['dsn'] = 'mysqli://pirat:beczka@localhost/pirat_g'; // DSN version, WORKS $containerOptions = array( 'type' => 'db', 'database' => 'pirat_g', 'phptype' => 'mysqli', 'username' => 'pirat', 'password' => 'beczka', 'mail_table' => 'mail_queue', ); // based on website example, DOESN'T WORK Actual result: -------------- [mail_queue_error: message="Mail Queue Error: Cannot connect to database" code=-6 mode=return level=error prefix="" info="DB::connect failed - FILE: /var/www/vhosts/pirates.pl/httpdocs/lib/pear/PEAR/Mail/Queue/Container/db.php, LINE: 198"]

Comments

 [2008-09-13 18:07 UTC] quipo (Lorenzo Alberton)
Please fetch the CVS version of the package, it should be fixed. Please reopen this report if you still have issues.