diff options
author | Antony Dovgal <tony2001@php.net> | 2006-05-24 20:21:02 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-05-24 20:21:02 +0000 |
commit | fb32c077a2fee482eb96d3b4cf7cd37eadf81155 (patch) | |
tree | 0b437f0b13e7abb5f2131afa0d91e5b0cf4be90f | |
parent | a953a1abda632d410bdcc31aece6708b5e0598a1 (diff) | |
download | php-git-fb32c077a2fee482eb96d3b4cf7cd37eadf81155.tar.gz |
fix #37499 (CLI segmentation faults during cleanup (only with sybase-ct extension enabled))
-rw-r--r-- | ext/sybase_ct/php_sybase_ct.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |