From: Marcus Boerger Date: Tue, 24 Aug 2004 21:41:02 +0000 (+0000) Subject: TSRM fix X-Git-Tag: php-5.0.2RC1~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5facf4beccf657636c62a548017710370bea7872;p=php TSRM fix --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 0fa6d445eb..12acef5a5a 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; @@ -353,7 +353,7 @@ PHPAPI pcre* pcre_get_compiled_regex_ex(char *regex, pcre_extra **extra, int *pr * 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. */