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

index 9a82d68cc2de97b582c77bb4af6a8e3623ede8aa..f74cfbeae5cb6b5cd55e3595069504927c6d9960 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);