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

Bug #10807 connect() Method Incorrectly Caches Connections
Submitted: 2007-04-23 09:41 UTC
From: fornax Assigned: fornax
Status: Closed Package: MDB2_Driver_mysql (version 1.4.0)
PHP Version: 4.3.11 OS: Centos 4.3, Apache 1.3
Roadmaps: (Not assigned)    
Subscription  


 [2007-04-23 09:41 UTC] fornax (Andrew Hill)
Description: ------------ If the connect() method is called on a non-existing database, an error is returned as expected. However, the vales of $this->connected_dsn and $this->dsn are set to the same, so subsequent calls to connect to this database will return the same result, even though the database may have been created in the mean time. As a result, options will not be set correctly; for example, the value of $this->supported['transactions'] may be false, even though the connection supports transactions.

Comments

 [2007-04-25 09:25 UTC] quipo (Lorenzo Alberton)
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.