diff options
author | Joe Watkins <krakjoe@php.net> | 2019-06-10 14:19:39 +0200 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2019-06-10 14:19:39 +0200 |
commit | 42d60addef7c9a8979529fae55ea2b22ee2c3ae6 (patch) | |
tree | be3d12491e499b17394b6a4a8fcafd5cda8e2111 /Zend | |
parent | 46df9a858c43af2c4316835336d95394a7901f57 (diff) | |
download | php-git-42d60addef7c9a8979529fae55ea2b22ee2c3ae6.tar.gz |
BIND_LEXICAL has a meaningless line number
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index b8c6b3ba2d..7023f3a589 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -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); |