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

View File

@ -351,7 +351,8 @@ class Platform
*/ */
public static function hasMssqlSupport() 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');
} }
/** /**