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

Bug #9828 No check for extension
Submitted: 2007-01-14 11:45 UTC Modified: 2007-03-05 15:40 UTC
From: yunosh Assigned: quipo
Status: Closed Package: MDB2_Driver_sqlite (version 1.3.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2007-01-14 11:45 UTC] yunosh (Jan Schneider)
Description: ------------ The driver doesn't check if the sqlite extension is loaded. And even worse, there are silenced sqlite_last_error() calls in errorInfo() that result in a fatal error without any further notice. For the end user, the script simply stops. I didn't check if other drivers are affected too.

Comments

 [2007-03-04 19:58 UTC] quipo (Lorenzo Alberton)
Actually, there is this check in connect(): if (!PEAR::loadExtension($this->phptype)) regarding the fatal error, can it be related to this bug? http://pear.php.net/bugs/bug.php?id=9800 Can you try the CVS version, and tell me if you still experience this issue?
 [2007-03-05 11:06 UTC] yunosh (Jan Schneider)
Yes, this pretty much sounds like bug #9800. I'm gonna try a CVS checkout now.
 [2007-03-05 11:32 UTC] yunosh (Jan Schneider)
No, CVS doesn't make a difference.
 [2007-03-05 15:40 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. -- An error in MDB2_Driver_sqlite::getConnection() wasn't propagated to the caller methods.