Merge pull request #3400 from Icinga/bugfix/mssql-detection

Platform: Also consider dblib when checking for MSSQL support
This commit is contained in:
Johannes Meyer 2018-04-24 15:46:45 +02:00 committed by GitHub
commit c566c8bfde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -351,7 +351,8 @@ class Platform
*/
public static function hasMssqlSupport()
{
return static::extensionLoaded('mssql') && static::classExists('Zend_Db_Adapter_Pdo_Mssql');
return (static::extensionLoaded('mssql') || static::extensionLoaded('pdo_dblib'))
&& static::classExists('Zend_Db_Adapter_Pdo_Mssql');
}
/**