Browse Source

optimizer: fix recalc of catch_op/finally_op

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1310 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 8 years ago
parent
commit
6fc001508c
  1. 4
      mod_optimizer/xc_optimizer.c

4
mod_optimizer/xc_optimizer.c

@ -453,6 +453,10 @@ static int bbs_build_from(bbs_t *bbs, zend_op_array *op_array, int count) /* {{{
/* mark try start */
for (i = 0; i < op_array->last_try_catch; i ++) {
oplineinfos[op_array->try_catch_array[i].try_op].isbbhead = 1;
oplineinfos[op_array->try_catch_array[i].catch_op].isbbhead = 1;
#ifdef ZEND_ENGINE_2_5
oplineinfos[op_array->try_catch_array[i].finally_op].isbbhead = 1;
#endif
}
/* }}} */
/* {{{ fill op lines with newly allocated id */

Loading…
Cancel
Save