]> granicus.if.org Git - php/commitdiff
Fix #78132 wrong line number on ZEND_BIND_STATIC for lexical vars
authorJoe Watkins <krakjoe@php.net>
Sat, 8 Jun 2019 19:47:07 +0000 (21:47 +0200)
committerJoe Watkins <krakjoe@php.net>
Sat, 8 Jun 2019 19:47:07 +0000 (21:47 +0200)
Zend/zend_compile.c

index 52511aca4e049ecee338d369466f0bb4834df55b..b8c6b3ba2d8a78f3c510908c2cb49a3eea7fea3a 100644 (file)
@@ -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);
        }
 }