summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/mssql/php_mssql.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c
index 36e6647652..122d386de7 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -321,7 +321,11 @@ PHP_MINIT_FUNCTION(mssql)
PHP_MSHUTDOWN_FUNCTION(mssql)
{
UNREGISTER_INI_ENTRIES();
+#ifndef HAVE_FREETDS
+ dbwinexit();
+#else
dbexit();
+#endif
return SUCCESS;
}