mysqli を使う試み

REAR::DB 経由で、mysqli を使う試みをしたときのメモ。

Index: data/class/SC_Initial.php
===================================================================
--- data/class/SC_Initial.php	(revision 18369)
+++ data/class/SC_Initial.php	(working copy)
@@ -84,7 +84,7 @@
            && defined('DB_SERVER') && defined('DB_PORT') && defined('DB_NAME')) {
             /** サイト用DB */
             define ("DEFAULT_DSN",
-                    DB_TYPE . "://" . DB_USER . ":" . DB_PASSWORD . "@"
+                    'mysqli://' . DB_USER . ":" . DB_PASSWORD . "@"
                     . DB_SERVER . ":" .DB_PORT . "/" . DB_NAME);
         } else {
             define("DEFAULT_DSN", "pgsql://nobody:password@localhost:5432/eccubedb");
Index: data/module/DB/mysqli.php
===================================================================
--- data/module/DB/mysqli.php	(revision 18369)
+++ data/module/DB/mysqli.php	(working copy)
@@ -26,7 +26,7 @@
 /**
  * Obtain the DB_common class so it can be extended from
  */
-require_once 'DB/common.php';
+require_once DB_PHP_DIR . '/DB/common.php';
 
 /**
  * The methods PEAR DB uses to interact with PHP's mysqli extension