]> granicus.if.org Git - php/commitdiff
MFB: fix #37499 (CLI segmentation faults during cleanup (only with sybase-ct extensio...
authorAntony Dovgal <tony2001@php.net>
Wed, 24 May 2006 20:22:34 +0000 (20:22 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 24 May 2006 20:22:34 +0000 (20:22 +0000)
ext/sybase_ct/php_sybase_ct.c

index d379bf849413038b28745785ed35d5b7116cbad1..b90235d1b419b4c2142b992dec9e691cab2b085d 100644 (file)
@@ -442,6 +442,11 @@ PHP_RINIT_FUNCTION(sybase)
 PHP_MSHUTDOWN_FUNCTION(sybase)
 {
        UNREGISTER_INI_ENTRIES();
+#ifdef ZTS
+       ts_free_id(sybase_globals_id);
+#else
+       php_sybase_destroy_globals(&sybase_globals TSRMLS_CC);
+#endif
 #if 0
        ct_exit(context, CS_UNUSED);
        cs_ctx_drop(context);