From: Joe Watkins Date: Sat, 8 Jun 2019 19:47:07 +0000 (+0200) Subject: Fix #78132 wrong line number on ZEND_BIND_STATIC for lexical vars X-Git-Tag: php-7.4.0alpha1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=006b1911268fca9e6fa9243c2296d614f46e2ccc;p=php Fix #78132 wrong line number on ZEND_BIND_STATIC for lexical vars --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 52511aca4e..b8c6b3ba2d 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); } }