summaryrefslogtreecommitdiff
path: root/ext/mssql/php_mssql.c
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2005-04-12 17:46:45 +0000
committerFrank M. Kromann <fmk@php.net>2005-04-12 17:46:45 +0000
commite681512beb141de7f786231a1460bca5f13e1149 (patch)
treede0736037a03f107dc5114beb0ee012f5513503b /ext/mssql/php_mssql.c
parentb3acf2c5c4deb1e5f232319f726d233ad51bf6a9 (diff)
downloadphp-git-e681512beb141de7f786231a1460bca5f13e1149.tar.gz
MFH: 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 d6b5a75f16..532e763d6d 100644
--- a/ext/mssql/php_mssql.c
+++ b/ext/mssql/php_mssql.c
@@ -317,7 +317,11 @@ PHP_MINIT_FUNCTION(mssql)
PHP_MSHUTDOWN_FUNCTION(mssql)
{
UNREGISTER_INI_ENTRIES();
+#ifndef HAVE_FREETDS
+ dbwinexit();
+#else
dbexit();
+#endif
return SUCCESS;
}