summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2005-04-12 17:45:30 +0000
committerFrank M. Kromann <fmk@php.net>2005-04-12 17:45:30 +0000
commit7bf2fe5296f40237272f94d860dc69e451ab13c4 (patch)
treea1563316bf70a2cb366f65b546c8b0123b291868 /ext/mssql/php_mssql.c
parentd5847b9cf720dae0b7b9e3237e19e1b7cf7f1902 (diff)
downloadphp-git-7bf2fe5296f40237272f94d860dc69e451ab13c4.tar.gz
Fix for #32682. Error on module shutdown when called from activescript
Diffstat (limited to 'ext/mssql/php_mssql.c')
-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 9b9330df8f..af19219d0e 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;
}