summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-10-28 08:30:41 +0000
committerDmitry Stogov <dmitry@php.net>2005-10-28 08:30:41 +0000
commit36a14076a8902fafd355a3ad15d64a96d4bb4e31 (patch)
treea593fa66b430074c30ed04661dae9c6e80acb451 /ext/pcre/php_pcre.c
parent3815b367d5d044eec32b3169611ea6108e34efb9 (diff)
downloadphp-git-36a14076a8902fafd355a3ad15d64a96d4bb4e31.tar.gz
Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO)
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c4
1 files changed, 3 insertions, 1 deletions
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