cvs: php4 /pear/DB mssql.php
| From: | Chuck Hagenbuch | Date: | Tue, 10 Jul 2001 15:01:33 +0000 |
| Subject: | cvs: php4 /pear/DB mssql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-253@lists.php.net to get a copy of this message | ||
chagenbu Tue Jul 10 11:01:33 2001 EDT
Modified files:
/php4/pear/DB mssql.php
Log:
Suppress error messages from the connect function
Index: php4/pear/DB/mssql.php
diff -u php4/pear/DB/mssql.php:1.21 php4/pear/DB/mssql.php:1.22
--- php4/pear/DB/mssql.php:1.21 Mon Apr 16 18:32:54 2001
+++ php4/pear/DB/mssql.php Tue Jul 10 11:01:32 2001
@@ -16,7 +16,7 @@
// | Authors: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: mssql.php,v 1.21 2001/04/16 22:32:54 cox Exp $
+// $Id: mssql.php,v 1.22 2001/07/10 15:01:32 chagenbu Exp $
//
// Database independent query interface definition for PHP's Microsoft SQL Server
// extension.
@@ -51,11 +51,11 @@
$dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] :
'localhost';
$connect_function = $persistent ? 'mssql_pconnect' : 'mssql_connect';
if ($dbhost && $user && $pw) {
- $conn = $connect_function($dbhost, $user, $pw);
+ $conn = @$connect_function($dbhost, $user, $pw);
} elseif ($dbhost && $user) {
- $conn = $connect_function($dbhost, $user);
+ $conn = @$connect_function($dbhost, $user);
} else {
- $conn = $connect_function($dbhost);
+ $conn = @$connect_function($dbhost);
}
if ($dsninfo['database']) {
@mssql_select_db($dsninfo['database'], $conn);