From fb32c077a2fee482eb96d3b4cf7cd37eadf81155 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 24 May 2006 20:21:02 +0000 Subject: [PATCH] fix #37499 (CLI segmentation faults during cleanup (only with sybase-ct extension enabled)) --- ext/sybase_ct/php_sybase_ct.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.50.1