diff options
Diffstat (limited to 'ext/pdo_dblib/config.w32')
-rwxr-xr-x | ext/pdo_dblib/config.w32 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/pdo_dblib/config.w32 b/ext/pdo_dblib/config.w32 index 1ebdaf637a..0a87961991 100755 --- a/ext/pdo_dblib/config.w32 +++ b/ext/pdo_dblib/config.w32 @@ -45,8 +45,12 @@ if (PHP_PDO_MSSQL != "no") { CHECK_HEADER_ADD_INCLUDE("sqlfront.h", "CFLAGS_PDO_MSSQL", pdo_mssql_locations[i] + "\\DevTools\\Include", null, null, true)) { - pdo_mssql_locations[i].match(new RegExp("(\\d)")); - PDO_DBLIB_FLAVOUR = RegExp.$1 + 0; + if (pdo_mssql_locations[i] == 'yes') { + PDO_DBLIB_FLAVOUR = 'UNKNOWN'; + } else { + pdo_mssql_locations[i].match(new RegExp("(\\d)")); + PDO_DBLIB_FLAVOUR = RegExp.$1 + 0; + } break; } } |