]> granicus.if.org Git - php/commitdiff
possible fix for snaps box
authorWez Furlong <wez@php.net>
Sun, 13 Feb 2005 01:32:27 +0000 (01:32 +0000)
committerWez Furlong <wez@php.net>
Sun, 13 Feb 2005 01:32:27 +0000 (01:32 +0000)
ext/pdo_dblib/config.w32

index 1ebdaf637a1babb445474685210b2ce66f975042..0a8796199112e7978515ce49ac5f828a3bc62099 100755 (executable)
@@ -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;
                        }
                }