summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-08-24 21:49:09 +0000
committerMarcus Boerger <helly@php.net>2004-08-24 21:49:09 +0000
commit1d913a9c0ba949e353ebe9016f4733a5105f31d1 (patch)
tree33af8c68fac5b22e51668d77c1dba77dca9bb123 /ext/pcre/php_pcre.c
parent965783b7c1c760e493fe37a822c4a0674fd7f314 (diff)
downloadphp-git-1d913a9c0ba949e353ebe9016f4733a5105f31d1.tar.gz
MFB: TSRM fix
Diffstat (limited to 'ext/pcre/php_pcre.c')
-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 86f1876752..0faf08d5da 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. */