From 0d73873aad8babb0212e08ca5669b947b2fb608b Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Wed, 25 Aug 2004 04:42:54 +0000 Subject: [PATCH] MFH (r1.160) TSRM fix --- ext/pcre/php_pcre.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index aac64c8fbe..bf92e96e59 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -111,7 +111,7 @@ static PHP_MSHUTDOWN_FUNCTION(pcre) #define PCRE_CACHE_SIZE 4096 /* {{{ static pcre_clean_cache */ -static void pcre_clean_cache() +static void pcre_clean_cache(TSRMLS_D) { HashTable *ht = &PCRE_G(pcre_cache); Bucket *p = NULL; @@ -342,7 +342,7 @@ PHPAPI pcre* pcre_get_compiled_regex(char *regex, pcre_extra **extra, int *preg_ * ones). */ if (zend_hash_num_elements(&PCRE_G(pcre_cache)) == PCRE_CACHE_SIZE) { - pcre_clean_cache(); + pcre_clean_cache(TSRMLS_C); } /* Store the compiled pattern and extra info in the cache. */ -- 2.50.1