cvs: php4 /pear/DB ibase.php msql.php mssql.php mysql.php oci8.php odbc.php pgsql.php sybase.php
| From: | Chuck Hagenbuch | Date: | Mon, 21 Aug 2000 14:40:56 +0000 |
| Subject: | cvs: php4 /pear/DB ibase.php msql.php mssql.php mysql.php oci8.php odbc.php pgsql.php sybase.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1293@lists.php.net to get a copy of this message | ||
chagenbu Mon Aug 21 07:40:56 2000 EDT
Modified files:
/php4/pear/DB ibase.php msql.php mssql.php mysql.php oci8.php
odbc.php pgsql.php sybase.php
Log:
make the definition of connect() consistent - always take the $dsn as a
reference.
Index: php4/pear/DB/ibase.php
diff -u php4/pear/DB/ibase.php:1.3 php4/pear/DB/ibase.php:1.4
--- php4/pear/DB/ibase.php:1.3 Mon Jul 24 03:31:43 2000
+++ php4/pear/DB/ibase.php Mon Aug 21 07:40:55 2000
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: ibase.php,v 1.3 2000/07/24 10:31:43 david Exp $
+// $Id: ibase.php,v 1.4 2000/08/21 14:40:55 chagenbu Exp $
//
// Database independent query interface definition for PHP's Interbase
// extension.
@@ -46,7 +46,7 @@
);
}
- function connect ( $dsn, $persistant=false ) {
+ function connect (&$dsn, $persistant=false) {
if(is_array($dsn)) {
$dsninfo = &$dsn;
} else {
Index: php4/pear/DB/msql.php
diff -u php4/pear/DB/msql.php:1.4 php4/pear/DB/msql.php:1.5
--- php4/pear/DB/msql.php:1.4 Mon Jul 24 01:24:14 2000
+++ php4/pear/DB/msql.php Mon Aug 21 07:40:55 2000
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: msql.php,v 1.4 2000/07/24 08:24:14 ssb Exp $
+// $Id: msql.php,v 1.5 2000/08/21 14:40:55 chagenbu Exp $
//
// Database independent query interface definition for PHP's Mini-SQL
// extension.
@@ -42,7 +42,7 @@
);
}
- function connect ( $dsn, $persistent=false ) {
+ function connect (&$dsn, $persistent=false) {
if(is_array($dsn)) {
$dsninfo = &$dsn;
} else {
Index: php4/pear/DB/mssql.php
diff -u php4/pear/DB/mssql.php:1.7 php4/pear/DB/mssql.php:1.8
--- php4/pear/DB/mssql.php:1.7 Mon Jul 24 01:24:14 2000
+++ php4/pear/DB/mssql.php Mon Aug 21 07:40:55 2000
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: mssql.php,v 1.7 2000/07/24 08:24:14 ssb Exp $
+// $Id: mssql.php,v 1.8 2000/08/21 14:40:55 chagenbu Exp $
//
// Database independent query interface definition for PHP's Microsoft SQL Server
// extension.
@@ -42,7 +42,7 @@
);
}
- function connect ( $dsn, $persistent=false ) {
+ function connect (&$dsn, $persistent=false) {
if(is_array($dsn)) {
$dsninfo = &$dsn;
} else {
Index: php4/pear/DB/mysql.php
diff -u php4/pear/DB/mysql.php:1.20 php4/pear/DB/mysql.php:1.21
--- php4/pear/DB/mysql.php:1.20 Fri Aug 4 03:28:13 2000
+++ php4/pear/DB/mysql.php Mon Aug 21 07:40:55 2000
@@ -78,7 +78,7 @@
*
* @return int DB_OK on success, a DB error code on failure
*/
- function connect($dsn, $persistent = false) {
+ function connect(&$dsn, $persistent = false) {
if (is_array($dsn)) {
$dsninfo = &$dsn;
} else {
Index: php4/pear/DB/oci8.php
diff -u php4/pear/DB/oci8.php:1.5 php4/pear/DB/oci8.php:1.6
--- php4/pear/DB/oci8.php:1.5 Mon Jul 31 12:55:32 2000
+++ php4/pear/DB/oci8.php Mon Aug 21 07:40:55 2000
@@ -68,7 +68,7 @@
*
* @return int DB_OK on success, a DB error code on failure
*/
- function connect($dsn, $persistent = false) {
+ function connect(&$dsn, $persistent = false) {
if (is_array($dsn)) {
$dsninfo = &$dsn;
} else {
Index: php4/pear/DB/odbc.php
diff -u php4/pear/DB/odbc.php:1.10 php4/pear/DB/odbc.php:1.11
--- php4/pear/DB/odbc.php:1.10 Mon Jul 24 01:24:14 2000
+++ php4/pear/DB/odbc.php Mon Aug 21 07:40:55 2000
@@ -93,7 +93,7 @@
*
* @return int DB_OK on success, a DB error code on failure
*/
- function connect($dsn, $user, $pw) {
+ function connect(&$dsn, $user, $pw) {
if (is_array($dsn)) {
$dsninfo = &$dsn;
} else {
Index: php4/pear/DB/pgsql.php
diff -u php4/pear/DB/pgsql.php:1.9 php4/pear/DB/pgsql.php:1.10
--- php4/pear/DB/pgsql.php:1.9 Mon Jul 24 01:24:14 2000
+++ php4/pear/DB/pgsql.php Mon Aug 21 07:40:55 2000
@@ -88,7 +88,7 @@
*
* @return int DB_OK on success, a DB error code on failure
*/
- function connect($dsn, $persistent = false) {
+ function connect(&$dsn, $persistent = false) {
if (is_array($dsn)) {
$dsninfo = &$dsn;
} else {
Index: php4/pear/DB/sybase.php
diff -u php4/pear/DB/sybase.php:1.3 php4/pear/DB/sybase.php:1.4
--- php4/pear/DB/sybase.php:1.3 Mon Jul 24 03:31:43 2000
+++ php4/pear/DB/sybase.php Mon Aug 21 07:40:55 2000
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: sybase.php,v 1.3 2000/07/24 10:31:43 david Exp $
+// $Id: sybase.php,v 1.4 2000/08/21 14:40:55 chagenbu Exp $
//
// Database independent query interface definition for PHP's Sybase
// extension.
@@ -46,7 +46,7 @@
);
}
- function connect ( $dsn, $persistant=false ) {
+ function connect (&$dsn, $persistant=false) {
if(is_array($dsn)) {
$dsninfo = &$dsn;
} else {