From: Dmitry Stogov Date: Fri, 28 Oct 2005 08:31:01 +0000 (+0000) Subject: Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO) X-Git-Tag: RELEASE_2_0_1~138 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cb103271859c1a3a3e463a9c21921fb164d6522;p=php Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO) --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 20a53efae5..4e11c53f7c 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -100,7 +100,9 @@ static PHP_MINIT_FUNCTION(pcre) /* {{{ PHP_MSHUTDOWN_FUNCTION(pcre) */ static PHP_MSHUTDOWN_FUNCTION(pcre) { -#ifndef ZTS +#ifdef ZTS + ts_free_id(pcre_globals_id); +#else php_pcre_shutdown_globals(&pcre_globals TSRMLS_CC); #endif