mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Platform: Also check for the sqlsrv extension when checking MSSQL support
refs #3320
This commit is contained in:
parent
24128e0cc3
commit
b14b61d37a
@ -345,14 +345,20 @@ class Platform
|
|||||||
/**
|
/**
|
||||||
* Return whether it's possible to connect to a MSSQL database
|
* Return whether it's possible to connect to a MSSQL database
|
||||||
*
|
*
|
||||||
* Checks whether the mssql pdo extension has been loaded and Zend framework adapter for MSSQL is available
|
* Checks whether the mssql/dblib pdo or sqlsrv extension has
|
||||||
|
* been loaded and Zend framework adapter for MSSQL is available
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function hasMssqlSupport()
|
public static function hasMssqlSupport()
|
||||||
{
|
{
|
||||||
return (static::extensionLoaded('mssql') || static::extensionLoaded('pdo_dblib'))
|
if ((static::extensionLoaded('mssql') || static::extensionLoaded('pdo_dblib'))
|
||||||
&& static::classExists('Zend_Db_Adapter_Pdo_Mssql');
|
&& static::classExists('Zend_Db_Adapter_Pdo_Mssql')
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return static::extensionLoaded('sqlsrv') && static::classExists('Zend_Db_Adapter_Sqlsrv');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user