cvs: php4 /pear DB.php

From: Date: Fri, 02 Feb 2001 05:24:32 +0000
Subject: cvs: php4 /pear DB.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3863@lists.php.net to get a copy of this message
chagenbu Thu Feb 1 21:24:32 2001 EDT Modified files: /php4/pear DB.php Log: make sure to include subclasses before trying to instantiate them. Index: php4/pear/DB.php diff -u php4/pear/DB.php:1.45 php4/pear/DB.php:1.46 --- php4/pear/DB.php:1.45 Tue Jan 30 00:34:55 2001 +++ php4/pear/DB.php Thu Feb 1 21:24:31 2001 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: DB.php,v 1.45 2001/01/30 08:34:55 ssb Exp $ +// $Id: DB.php,v 1.46 2001/02/02 05:24:31 chagenbu Exp $ // // Database independent query interface. // @@ -208,7 +208,8 @@ $dsninfo = DB::parseDSN($dsn); } $type = $dsninfo["phptype"]; - + + @include_once "DB/${type}.php"; $classname = "DB_${type}"; @$obj =& new $classname;

« previous php.cvs (#3863) next »