tony2001 Wed May 24 20:21:02 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/sybase_ct php_sybase_ct.c
Log:
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.103.2.5&r2=1.103.2.5.2.1&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.103.2.5
php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5.2.1
--- php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5 Sun Jan 1 12:50:16 2006
+++ php-src/ext/sybase_ct/php_sybase_ct.c Wed May 24 20:21:02 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_sybase_ct.c,v 1.103.2.5 2006/01/01 12:50:16 sniper Exp $ */
+/* $Id: php_sybase_ct.c,v 1.103.2.5.2.1 2006/05/24 20:21:02 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