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.
This commit is contained in:
Markus Frosch 2018-03-27 11:35:26 +02:00
parent c0e8b33b33
commit 123a0b8196
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');
}
/**