Fix #78132 wrong line number on ZEND_BIND_STATIC for lexical vars

This commit is contained in:
Joe Watkins 2019-06-08 21:47:07 +02:00
parent f76d83ab15
commit 006b191126
No known key found for this signature in database
GPG Key ID: F9BA0ADA31CBD89E

View 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);
}
}