cvs: php4 /pear DB.php

From: Date: Fri, 30 Jun 2000 19:20:03 +0000
Subject: cvs: php4 /pear DB.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-570@lists.php.net to get a copy of this message
chagenbu Fri Jun 30 12:20:03 2000 EDT Modified files: /php4/pear DB.php Log: DB::parseDSN() now checks the value it is passed, and if it is already an array, returns it. This lets you pass arrays to the connect functions and they'll work transparently. Index: php4/pear/DB.php diff -u php4/pear/DB.php:1.19 php4/pear/DB.php:1.20 --- php4/pear/DB.php:1.19 Tue Jun 20 19:22:04 2000 +++ php4/pear/DB.php Fri Jun 30 12:20:03 2000 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: DB.php,v 1.19 2000/06/21 02:22:04 chagenbu Exp $ +// $Id: DB.php,v 1.20 2000/06/30 19:20:03 chagenbu Exp $ // // Database independent query interface. // @@ -330,6 +330,9 @@ * @return bool FALSE is returned on error */ function parseDSN($dsn) { + if (is_array($dsn)) + return $dsn; + $parsed = array( 'phptype' => false, 'dbsyntax' => false,

« previous php.cvs (#570) next »