Skip to content

Commit

Permalink
Remove spurious CG(context).in_finally dingleberry
Browse files Browse the repository at this point in the history
  • Loading branch information
SammyK authored and nikic committed Apr 10, 2017
1 parent 797ee05 commit e92896f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ void zend_oparray_context_begin(zend_oparray_context *prev_context) /* {{{ */
CG(context).vars_size = 0;
CG(context).literals_size = 0;
CG(context).backpatch_count = 0;
CG(context).in_finally = 0;
CG(context).fast_call_var = -1;
CG(context).try_catch_offset = -1;
CG(context).current_brk_cont = -1;
Expand Down Expand Up @@ -4936,9 +4935,7 @@ void zend_compile_try(zend_ast *ast) /* {{{ */

zend_emit_op(NULL, ZEND_JMP, NULL, NULL);

CG(context).in_finally++;
zend_compile_stmt(finally_ast);
CG(context).in_finally--;

CG(active_op_array)->try_catch_array[try_catch_offset].finally_op = opnum_jmp + 1;
CG(active_op_array)->try_catch_array[try_catch_offset].finally_end
Expand Down
1 change: 0 additions & 1 deletion Zend/zend_compile.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ typedef struct _zend_oparray_context {
int vars_size;
int literals_size;
int backpatch_count;
int in_finally;
uint32_t fast_call_var;
uint32_t try_catch_offset;
int current_brk_cont;
Expand Down

0 comments on commit e92896f

Please sign in to comment.