From 22e597e5a843a2f93c064cf85eaab1dc4f758bdc Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sun, 4 Feb 2007 09:55:47 +0000 Subject: [PATCH] disable copying internal class temporarily git-svn-id: svn://svn.lighttpd.net/xcache/trunk@346 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- utils.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/utils.c b/utils.c index af25904..369aeb3 100644 --- a/utils.c +++ b/utils.c @@ -542,8 +542,6 @@ void xc_zend_class_add_ref(zend_class_entry ZESW(*ce, **ce)) xc_sandbox_t *xc_sandbox_init(xc_sandbox_t *sandbox, char *filename TSRMLS_DC) /* {{{ */ { HashTable *h; - zend_function tmp_func; - xc_cest_t tmp_cest; if (sandbox) { memset(sandbox, 0, sizeof(sandbox[0])); @@ -581,12 +579,20 @@ xc_sandbox_t *xc_sandbox_init(xc_sandbox_t *sandbox, char *filename TSRMLS_DC) / #endif h = OG(function_table); zend_hash_init_ex(&TG(function_table), 128, NULL, h->pDestructor, h->persistent, h->bApplyProtection); - zend_hash_copy(&TG(function_table), &XG(internal_function_table), (copy_ctor_func_t) function_add_ref, (void *) &tmp_func, sizeof(tmp_func)); + { + zend_function tmp_func; + zend_hash_copy(&TG(function_table), &XG(internal_function_table), (copy_ctor_func_t) function_add_ref, (void *) &tmp_func, sizeof(tmp_func)); + } TG(internal_class_tail) = TG(function_table).pListTail; h = OG(class_table); zend_hash_init_ex(&TG(class_table), 16, NULL, h->pDestructor, h->persistent, h->bApplyProtection); - zend_hash_copy(&TG(class_table), &XG(internal_class_table), (copy_ctor_func_t) xc_zend_class_add_ref, (void *) &tmp_cest, sizeof(tmp_cest)); +#if 0 && TODO + { + xc_cest_t tmp_cest; + zend_hash_copy(&TG(class_table), &XG(internal_class_table), (copy_ctor_func_t) xc_zend_class_add_ref, (void *) &tmp_cest, sizeof(tmp_cest)); + } +#endif TG(internal_class_tail) = TG(class_table).pListTail; #ifdef ZEND_ENGINE_2_1