Index: apc_compile.c =================================================================== RCS file: /repository/pecl/apc/apc_compile.c,v retrieving revision 3.91 diff -u -r3.91 apc_compile.c --- apc_compile.c 24 Mar 2008 01:01:25 -0000 3.91 +++ apc_compile.c 28 Mar 2008 13:52:09 -0000 @@ -1972,8 +1972,6 @@ sizeof(src->refcount[0]), apc_php_malloc); - apc_stack_push(APCG(refcount_stack), (void*)dst->refcount); - my_prepare_op_array_for_execution(dst,src TSRMLS_CC); return dst; Index: apc_globals.h =================================================================== RCS file: /repository/pecl/apc/apc_globals.h,v retrieving revision 3.76 diff -u -r3.76 apc_globals.h --- apc_globals.h 25 Mar 2008 21:19:41 -0000 3.76 +++ apc_globals.h 28 Mar 2008 13:52:09 -0000 @@ -58,7 +58,6 @@ /* module variables */ zend_bool initialized; /* true if module was initialized */ apc_stack_t* cache_stack; /* the stack of cached executable code */ - apc_stack_t* refcount_stack; /* the stack of refcounts to be free'd in request shutdown */ zend_bool cache_by_default; /* true if files should be cached unless filtered out */ /* false if files should only be cached if filtered in */ long slam_defense; /* Probability of a process not caching an uncached file */ Index: apc_main.c =================================================================== RCS file: /repository/pecl/apc/apc_main.c,v retrieving revision 3.110 diff -u -r3.110 apc_main.c --- apc_main.c 24 Mar 2008 01:07:14 -0000 3.110 +++ apc_main.c 28 Mar 2008 13:52:09 -0000 @@ -565,7 +565,6 @@ /* {{{ apc_deactivate */ static void apc_deactivate(TSRMLS_D) { - zend_uint *refcount_p; /* The execution stack was unwound, which prevented us from decrementing * the reference counts on active cache entries in `my_execute`. */ @@ -579,11 +578,6 @@ (apc_cache_entry_t*) apc_stack_pop(APCG(cache_stack)); if (cache_entry->data.file.classes) { - for (i = 0; cache_entry->data.file.functions[i].function != NULL; i++) { - zend_hash_del(EG(function_table), - cache_entry->data.file.functions[i].name, - cache_entry->data.file.functions[i].name_len+1); - } for (i = 0; cache_entry->data.file.classes[i].class_entry != NULL; i++) { centry = (void**)&pzce; /* a triple indirection to get zend_class_entry*** */ if(zend_hash_find(EG(class_table), @@ -607,13 +601,6 @@ } apc_cache_release(apc_cache, cache_entry); } - - /* prevent memleak warnings on refcounts that have been alloc'd */ - while (apc_stack_size(APCG(refcount_stack)) > 0) { - refcount_p = (zend_uint*)apc_stack_pop(APCG(refcount_stack)); - efree(refcount_p); - } - } /* }}} */ Index: php_apc.c =================================================================== RCS file: /repository/pecl/apc/php_apc.c,v retrieving revision 3.165 diff -u -r3.165 php_apc.c --- php_apc.c 24 Mar 2008 01:01:25 -0000 3.165 +++ php_apc.c 28 Mar 2008 13:52:09 -0000 @@ -78,7 +78,6 @@ apc_globals->filters = NULL; apc_globals->initialized = 0; apc_globals->cache_stack = apc_stack_create(0); - apc_globals->refcount_stack = apc_stack_create(0); apc_globals->cache_by_default = 1; apc_globals->slam_defense = 0; apc_globals->mem_size_ptr = NULL;