com php-src: Fix #78132 wrong line number on ZEND_BIND_STAT IC for lexical vars: Zend/zend_compile.c
| From: | Joe Watkins | Date: | Sat, 08 Jun 2019 19:47:07 +0000 |
| Subject: | com php-src: Fix #78132 wrong line number on ZEND_BIND_STAT IC for lexical vars: Zend/zend_compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106615@lists.php.net to get a copy of this message | ||
Commit: 006b1911268fca9e6fa9243c2296d614f46e2ccc
Author: Joe Watkins <krakjoe@php.net> Sat, 8 Jun 2019 21:47:07 +0200
Parents: f76d83ab15ded295ebcbe796de3d83739f495008
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=006b1911268fca9e6fa9243c2296d614f46e2ccc
Log:
Fix #78132 wrong line number on ZEND_BIND_STATIC for lexical vars
Bugs:
https://bugs.php.net/78132
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 52511ac..b8c6b3b 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -5585,6 +5585,8 @@ static void zend_compile_closure_uses(zend_ast *ast) /* {{{ */
}
}
+ CG(zend_lineno) = zend_ast_get_lineno(var_ast);
+
zend_compile_static_var_common(var_name, &zv, var_ast->attr ? ZEND_BIND_REF : 0);
}
}