|
From: Benjamin C. <bc...@us...> - 2002-10-11 20:54:46
|
Update of /cvsroot/phpbt/phpbt/inc/pear
In directory usw-pr-cvs1:/tmp/cvs-serv14128/inc/pear
Modified Files:
DB.php
Log Message:
Added PEAR_PATH to avoid conflicts with system-wide PEAR.
Index: DB.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/pear/DB.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DB.php 13 Sep 2002 18:07:51 -0000 1.1
+++ DB.php 11 Oct 2002 20:54:43 -0000 1.2
@@ -22,7 +22,7 @@
// Database independent query interface.
//
-require_once "PEAR.php";
+require_once PEAR_PATH."PEAR.php";
/*
* The method mapErrorCode in each DB_dbtype implementation maps
@@ -200,7 +200,7 @@
function &factory($type)
{
- @include_once("DB/${type}.php");
+ @include_once(PEAR_PATH."DB/${type}.php");
$classname = "DB_${type}";
@@ -247,9 +247,9 @@
if (is_array($options) && isset($options["debug"]) &&
$options["debug"] >= 2) {
// expose php errors with sufficient debug level
- include_once "DB/${type}.php";
+ include_once PEAR_PATH."DB/${type}.php";
} else {
- @include_once "DB/${type}.php";
+ @include_once PEAR_PATH."DB/${type}.php";
}
$classname = "DB_${type}";
@@ -386,8 +386,8 @@
DB_WARNING_READ_ONLY => 'read only',
DB_ERROR_NEED_MORE_DATA => 'insufficient data supplied',
DB_ERROR_EXTENSION_NOT_FOUND=> 'extension not found',
- DB_ERROR_NOSUCHDB => 'no such database',
- DB_ERROR_ACCESS_VIOLATION => 'insufficient permissions'
+ DB_ERROR_NOSUCHDB => 'no such database',
+ DB_ERROR_ACCESS_VIOLATION => 'insufficient permissions'
);
}
|