From: Dmitry Stogov Date: Fri, 28 Oct 2005 08:30:41 +0000 (+0000) Subject: Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO) X-Git-Tag: php-5.1.0RC4~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36a14076a8902fafd355a3ad15d64a96d4bb4e31;p=php Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO) --- diff --git a/NEWS b/NEWS index 8098fe181e..f18a22509c 100644 --- a/NEWS +++ b/NEWS @@ -22,6 +22,7 @@ PHP NEWS - Fixed bug #34782 (token_get_all() gives wrong result). (Dmitry) - Fixed bug #34767 (Zend Engine 1 Compatibility not copying objects correctly). (Dmitry) +- Fixed bug #34725 (CLI segmentation faults during cleanup). (Dmitry) - Fixed bug #34712 (zend.ze1_compatibility_mode = on segfault). (Dmitry) - Fixed bug #34623 (Crash in pdo_mysql on longtext fields). (Ilia) - Fixed bug #33829 (mime_content_type() returns text/plain for gzip and bzip diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 6b45187345..a70af3ea48 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