From: Antony Dovgal Date: Wed, 24 May 2006 20:21:02 +0000 (+0000) Subject: fix #37499 (CLI segmentation faults during cleanup (only with sybase-ct extension... X-Git-Tag: php-5.2.0RC1~475 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb32c077a2fee482eb96d3b4cf7cd37eadf81155;p=php fix #37499 (CLI segmentation faults during cleanup (only with sybase-ct extension enabled)) --- diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c index 9a82d68cc2..f74cfbeae5 100644 --- a/ext/sybase_ct/php_sybase_ct.c +++ b/ext/sybase_ct/php_sybase_ct.c @@ -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);