]> granicus.if.org Git - php/commitdiff
Fixed bug #34725 (CLI segmentation faults during cleanup in ZTS if ext/pcre is DSO)
authorDmitry Stogov <dmitry@php.net>
Fri, 28 Oct 2005 08:31:01 +0000 (08:31 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 28 Oct 2005 08:31:01 +0000 (08:31 +0000)
ext/pcre/php_pcre.c

index 20a53efae57a9645b885eac5a63db838b0cd2c16..4e11c53f7c805d7c7ec4492bf5295681504a8822 100644 (file)
@@ -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