From 123a0b81966ee324318b6c402e01f2b1686b8c46 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Tue, 27 Mar 2018 11:35:26 +0200 Subject: [PATCH] Platform: Correct detecting MSSQL Support PDO Implementation of zf1 builds on module mssql OR pdo_dblib, while dblib is preferred. Newer implementations would support pdo_sqlsrv, but that is not available with ZF1. --- library/Icinga/Application/Platform.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Application/Platform.php b/library/Icinga/Application/Platform.php index 21ef47d52..2bfb3863a 100644 --- a/library/Icinga/Application/Platform.php +++ b/library/Icinga/Application/Platform.php @@ -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'); } /**