]> granicus.if.org Git - php/commitdiff
Here is a brief start towards getting the DB stuff up to speed and working
authorChuck Hagenbuch <chagenbu@php.net>
Wed, 21 Jun 2000 02:22:04 +0000 (02:22 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Wed, 21 Jun 2000 02:22:04 +0000 (02:22 +0000)
(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

index 2b76a790cfce6bd187554de6a6a730b10ddde16a..2cc8016accdbca6e1fb760b438a6c88584452b77 100644 (file)
@@ -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;