com php-src: BIND_LEXICAL has a meaningless line nu mber: Zend/zend_compile.c
| From: | Joe Watkins | Date: | Mon, 10 Jun 2019 12:19:39 +0000 |
| Subject: | com php-src: BIND_LEXICAL has a meaningless line nu mber: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106629@lists.php.net to get a copy of this message | ||
Commit: 42d60addef7c9a8979529fae55ea2b22ee2c3ae6
Author: Joe Watkins <krakjoe@php.net> Mon, 10 Jun 2019 14:19:39 +0200
Parents: 46df9a858c43af2c4316835336d95394a7901f57
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=42d60addef7c9a8979529fae55ea2b22ee2c3ae6
Log:
BIND_LEXICAL has a meaningless line number
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index b8c6b3b..7023f3a 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);