Skip to content

Commit

Permalink
BIND_LEXICAL has a meaningless line number
Browse files Browse the repository at this point in the history
  • Loading branch information
krakjoe committed Jun 10, 2019
1 parent 46df9a8 commit 42d60ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5453,6 +5453,8 @@ static void zend_compile_closure_binding(znode *closure, zend_op_array *op_array
"Cannot use variable $%s twice", ZSTR_VAL(var_name));
}

CG(zend_lineno) = zend_ast_get_lineno(var_name_ast);

opline = zend_emit_op(NULL, ZEND_BIND_LEXICAL, closure, NULL);
opline->op2_type = IS_CV;
opline->op2.var = lookup_cv(var_name);
Expand Down

0 comments on commit 42d60ad

Please sign in to comment.