From: Wez Furlong Date: Sun, 13 Feb 2005 01:32:27 +0000 (+0000) Subject: possible fix for snaps box X-Git-Tag: RELEASE_0_2_3~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4dc3b755698734ffcde613d5ebfd4e7ed378e934;p=php possible fix for snaps box --- 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; } }