#6 autodetection for SQLITE3

closed
nobody
None
5
2005-11-13
2005-11-08
Guenter Knauf
No

Hi,
why does SQLiteManager not try some kind of
autodetection? f.e. I tested with:
--- user_defined.inc.php.orig Sun Oct 23 22:03:40
2005
+++ user_defined.inc.php Tue Nov 08 14:22:00 2005
@@ -20,8 +20,9 @@
* if you want to manage SQLite database version 3, you
must install 'php_pdo' and 'php_pdo_sqlite' extension
from PECL
* after you can set 'SQLITE3' contant to true
*/
-// define("SQLITE3", false);
-
+if (extension_loaded('pdo') &&
extension_loaded('pdo_sqlite')) {
+ define("SQLITE3", true);
+}
/**
* By default the DEBUG mode depend of
SQLiteManagerVersion, if it's finish by 'CVS' debug mode
turn on
* You can force debug mode to on by setting 'DEBUG'
constante

Guenter.

Discussion

    • status: open --> closed
     
  • Logged In: YES
    user_id=142485

    You can have PDO installed but want to manage SQLite2 databases!

    I work on it!!
    The next version, i think the 1.2.0, will can manage SQLite2
    and SQLite3 at the same time.

    Thanks
    Fred