tony2001 Wed May 24 20:22:34 2006 UTC
Modified files:
/php-src/ext/sybase_ct php_sybase_ct.c
Log:
MFB: fix #37499 (CLI segmentation faults during cleanup (only with sybase-ct
extension enabled))
http://cvs.php.net/viewcvs.cgi/php-src/ext/sybase_ct/php_sybase_ct.c?r1=1.110&r2=1.111&diff_format=u
Index: php-src/ext/sybase_ct/php_sybase_ct.c
diff -u php-src/ext/sybase_ct/php_sybase_ct.c:1.110
php-src/ext/sybase_ct/php_sybase_ct.c:1.111
--- php-src/ext/sybase_ct/php_sybase_ct.c:1.110 Wed Mar 8 00:43:28 2006
+++ php-src/ext/sybase_ct/php_sybase_ct.c Wed May 24 20:22:34 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_sybase_ct.c,v 1.110 2006/03/08 00:43:28 pajoye Exp $ */
+/* $Id: php_sybase_ct.c,v 1.111 2006/05/24 20:22:34 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
@@ -442,6 +442,11 @@
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);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php