Browse Source

constinfos cannot be fast copied

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@503 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 14 years ago
parent
commit
5b6d472b1d
  1. 6
      processor/processor.m4
  2. 3
      xcache.c

6
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)

3
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);
}

Loading…
Cancel
Save