(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.
* error
*/
function &factory($type) {
- if (!@import("DB/${type}.php")) {
+ if (!@include_once("DB/${type}.php")) {
return DB_ERROR_NOT_FOUND;
}
$classname = 'DB_' . $type;
$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;