cvs: php4 /pear/DB mssql.php sybase.php
| From: | Thomas V.V.Cox | Date: | Fri, 07 Dec 2001 02:13:20 +0000 |
| Subject: | cvs: php4 /pear/DB mssql.php sybase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1490@lists.php.net to get a copy of this message | ||
cox Thu Dec 6 21:13:20 2001 EDT
Modified files:
/php4/pear/DB sybase.php mssql.php
Log:
Throw the error only if all of the extensions are missing
Index: php4/pear/DB/sybase.php
diff -u php4/pear/DB/sybase.php:1.27 php4/pear/DB/sybase.php:1.28
--- php4/pear/DB/sybase.php:1.27 Thu Dec 6 07:00:18 2001
+++ php4/pear/DB/sybase.php Thu Dec 6 21:13:20 2001
@@ -16,7 +16,7 @@
// | Authors: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: sybase.php,v 1.27 2001/12/06 12:00:18 cox Exp $
+// $Id: sybase.php,v 1.28 2001/12/07 02:13:20 cox Exp $
//
// Database independent query interface definition for PHP's Sybase
// extension.
@@ -54,7 +54,7 @@
function connect($dsninfo, $persistent = false)
{
- if (!DB::assertExtension('sybase') ||
!DB::assertExtension('sybase_ct'))
+ if (!DB::assertExtension('sybase') &&
!DB::assertExtension('sybase_ct'))
return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);
$this->dsn = $dsninfo;
Index: php4/pear/DB/mssql.php
diff -u php4/pear/DB/mssql.php:1.35 php4/pear/DB/mssql.php:1.36
--- php4/pear/DB/mssql.php:1.35 Wed Dec 5 20:42:16 2001
+++ php4/pear/DB/mssql.php Thu Dec 6 21:13:20 2001
@@ -16,7 +16,7 @@
// | Authors: Sterling Hughes <sterling@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: mssql.php,v 1.35 2001/12/06 01:42:16 cox Exp $
+// $Id: mssql.php,v 1.36 2001/12/07 02:13:20 cox Exp $
//
// Database independent query interface definition for PHP's Microsoft SQL Server
// extension.
@@ -52,8 +52,8 @@
function connect($dsninfo, $persistent = false)
{
- if (!DB::assertExtension('mssql') || !DB::assertExtension('sybase')
- || !DB::assertExtension('sybase_ct'))
+ if (!DB::assertExtension('mssql') &&
!DB::assertExtension('sybase')
+ && !DB::assertExtension('sybase_ct'))
{
return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);
}