]> granicus.if.org Git - php/commitdiff
MFB: TSRM fix
authorMarcus Boerger <helly@php.net>
Tue, 24 Aug 2004 21:49:09 +0000 (21:49 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 24 Aug 2004 21:49:09 +0000 (21:49 +0000)
ext/pcre/php_pcre.c

index 86f18767529e66105ed961ffe07ed5f150bb7c1b..0faf08d5da3ca3e344fab5b8730f79105d1dc794 100644 (file)
@@ -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. */