BIND_LEXICAL has a meaningless line number

This commit is contained in:
Joe Watkins 2019-06-10 14:19:39 +02:00
parent 46df9a858c
commit 42d60addef
No known key found for this signature in database
GPG Key ID: F9BA0ADA31CBD89E

View File

@ -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);