summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2004-08-25 04:42:54 +0000
committerSara Golemon <pollita@php.net>2004-08-25 04:42:54 +0000
commit0d73873aad8babb0212e08ca5669b947b2fb608b (patch)
treea81d54cad181b74427fe75312908c841c0566ca7
parent6c42291ed600116057d39cb844a79f1389880c39 (diff)
downloadphp-git-0d73873aad8babb0212e08ca5669b947b2fb608b.tar.gz
MFH (r1.160) TSRM fix
-rw-r--r--ext/pcre/php_pcre.c4
1 files 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. */