Index: apc_compile.c =================================================================== RCS file: /repository/pecl/apc/apc_compile.c,v retrieving revision 3.39 diff -u -r3.39 apc_compile.c --- apc_compile.c 9 Mar 2006 23:28:42 -0000 3.39 +++ apc_compile.c 10 Mar 2006 03:05:29 -0000 @@ -1824,9 +1824,10 @@ /* {{{ apc_copy_function_for_execution */ zend_function* apc_copy_function_for_execution(zend_function* src) { + zend_function* dst = NULL; TSRMLS_FETCH(); - zend_function* dst = (zend_function*) emalloc(sizeof(src[0])); + dst = (zend_function*) emalloc(sizeof(src[0])); memcpy(dst, src, sizeof(src[0])); dst->op_array.static_variables = my_copy_static_variables(&dst->op_array, apc_php_malloc, apc_php_free); #ifdef ZEND_ENGINE_2 @@ -1838,7 +1839,7 @@ /* }}} */ /* {{{ apc_copy_function_for_execution_ex */ -zend_function* apc_copy_function_for_execution_ex(void *dummy, zend_function* src) +zend_function* apc_copy_function_for_execution_ex(void *dummy, zend_function* src, apc_malloc_t allocate, apc_free_t deallocate) { if(src->type==ZEND_INTERNAL_FUNCTION || src->type==ZEND_OVERLOADED_FUNCTION) return src; return apc_copy_function_for_execution(src);