From 5b6d472b1d21add960650d5d42d5926849dfacbf Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sat, 5 Jan 2008 02:36:01 +0000 Subject: [PATCH] constinfos cannot be fast copied git-svn-id: svn://svn.lighttpd.net/xcache/trunk@503 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- processor/processor.m4 | 6 +----- xcache.c | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/processor/processor.m4 b/processor/processor.m4 index 035539e..b1c01fe 100644 --- a/processor/processor.m4 +++ b/processor/processor.m4 @@ -774,11 +774,7 @@ DEF_STRUCT_P_FUNC(`xc_entry_data_php_t', , `dnl {{{ #ifdef HAVE_XCACHE_CONSTANT DISPATCH(zend_uint, constinfo_cnt) - IFRESTORE(` - COPY(constinfos) - ', ` - STRUCT_ARRAY(constinfo_cnt, xc_constinfo_t, constinfos) - ') + STRUCT_ARRAY(constinfo_cnt, xc_constinfo_t, constinfos) #endif DISPATCH(zend_uint, funcinfo_cnt) diff --git a/xcache.c b/xcache.c index 18693ec..1ef0d97 100644 --- a/xcache.c +++ b/xcache.c @@ -1178,6 +1178,9 @@ static zend_op_array *xc_compile_restore(xc_entry_t *stored_xce, zend_file_handl catched = 1; } zend_end_try(); + if (php.constinfos) { + efree(php.constinfos); + } if (php.funcinfos) { efree(php.funcinfos); }