summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2005-04-12 17:46:06 +0000
committerFrank M. Kromann <fmk@php.net>2005-04-12 17:46:06 +0000
commitb09e421111dc36ee42498a5a2ec7f7094b40e163 (patch)
treef812bffafffe216cfe1158f3773e25313f56da18
parent28e45cf6e47a0be98953ac5a9850787fa3c1f978 (diff)
downloadphp-git-b09e421111dc36ee42498a5a2ec7f7094b40e163.tar.gz
MFH: Fix for #32682. Error on module shutdown when called from activescript
-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;
}