1
0
Fork 0

optimizer: fix recalc of catch_op/finally_op

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1310 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2013-07-14 19:02:32 +00:00
parent 081bb66e29
commit 6fc001508c
1 changed files with 4 additions and 0 deletions

View File

@ -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 */