]> granicus.if.org Git - php/commitdiff
MFH (r1.160) TSRM fix
authorSara Golemon <pollita@php.net>
Wed, 25 Aug 2004 04:42:54 +0000 (04:42 +0000)
committerSara Golemon <pollita@php.net>
Wed, 25 Aug 2004 04:42:54 +0000 (04:42 +0000)
ext/pcre/php_pcre.c

index aac64c8fbe8ba8fb84be643c6b0750be6da93b50..bf92e96e59cc75b3306cafde554ec0a1b8d2f05b 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;
@@ -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. */