helly           Tue Aug 24 17:49:09 2004 EDT

  Modified files:              
    /php-src/ext/pcre   php_pcre.c 
  Log:
  MFB: TSRM fix
  
http://cvs.php.net/diff.php/php-src/ext/pcre/php_pcre.c?r1=1.159&r2=1.160&ty=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.159 php-src/ext/pcre/php_pcre.c:1.160
--- php-src/ext/pcre/php_pcre.c:1.159   Tue Aug 24 16:58:59 2004
+++ php-src/ext/pcre/php_pcre.c Tue Aug 24 17:49:09 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_pcre.c,v 1.159 2004/08/24 20:58:59 andrei Exp $ */
+/* $Id: php_pcre.c,v 1.160 2004/08/24 21:49:09 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -111,7 +111,7 @@
 #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 @@
         * 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. */

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to