From c80c71f48b1f3f4ace8af0f1f7eda62d28b1a41a Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Wed, 21 Jun 2000 02:22:04 +0000 Subject: [PATCH] Here is a brief start towards getting the DB stuff up to speed and working (I need it to move forward on some stuff, and I really do want to see PEAR succeed, so I'm going to work with the official code to get it working. Hope that's okay). I've replaced all instances of 'use' and 'import' with 'include_once' (and added the .php extension where necessary). This gets my short test script working. More possibly to come. --- pear/DB.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pear/DB.php b/pear/DB.php index 2b76a790cf..2cc8016acc 100644 --- a/pear/DB.php +++ b/pear/DB.php @@ -161,7 +161,7 @@ class DB { * error */ function &factory($type) { - if (!@import("DB/${type}.php")) { + if (!@include_once("DB/${type}.php")) { return DB_ERROR_NOT_FOUND; } $classname = 'DB_' . $type; @@ -190,7 +190,7 @@ class DB { $dsninfo = DB::parseDSN($dsn); $type = $dsninfo['phptype']; - if (!@import("DB/${type}.php")) { + if (!@include_once("DB/${type}.php")) { return DB_ERROR_NOT_FOUND; } $classname = 'DB_' . $type; -- 2.50.1