From 9cb103271859c1a3a3e463a9c21921fb164d6522 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 28 Oct 2005 08:31:01 +0000 Subject: [PATCH] Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO) --- ext/pcre/php_pcre.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.50.1