Permalink
Browse files

MFB: TSRM fix

  • Loading branch information...
Marcus Boerger
Marcus Boerger committed Aug 24, 2004
1 parent 965783b commit 1d913a9c0ba949e353ebe9016f4733a5105f31d1
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/pcre/php_pcre.c
View
@@ -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. */

0 comments on commit 1d913a9

Please sign in to comment.