Changeset 1997
- Timestamp:
- 04/19/08 08:10:11 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-35/php/lib/mtdb_sqlite.php
r1174 r1997 6 6 # $Id$ 7 7 8 require_once("ezsql".DIRECTORY_SEPARATOR."ezsql_sqlite.php"); 8 if (!class_exists("ezsql")) 9 require_once("ezsql".DIRECTORY_SEPARATOR."ezsql_sqlite.php"); 9 10 require_once("mtdb_base.php"); 10 11 branches/release-35/php/mt.php.pre
r1742 r1997 236 236 } 237 237 238 // Changes dbdriver from native to PDO, if we can. 239 // * PHP Version >= 5.0 240 // * DBDriver == sqlite / with out UseSQLite2 241 // * PDO and PDO_SQLITE extensions loaded 242 if (version_compare(PHP_VERSION, '5.0') > 0 243 && $cfg['dbdriver'] == 'sqlite' 244 && !isset($cfg['usesqlite2']) 245 && extension_loaded('pdo') 246 && extension_loaded('pdo_sqlite')) 247 { 248 $cfg['dbdriver'] = 'pdo_sqlite'; 249 } 238 250 $this->config =& $cfg; 239 251 $this->config_defaults();
