From 33a91f57e9a749e62631ccc76b850b17fde218ee Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Tue, 28 Jul 2015 00:56:18 +0200 Subject: [PATCH] Set CG(zend_lineno) to beginning for final class errors/ops --- Zend/zend_compile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index f0ddbd478b..b7be2e9459 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -5255,6 +5255,9 @@ void zend_compile_class_decl(zend_ast *ast) /* {{{ */ zend_compile_stmt(stmt_ast); + /* Reset lineno for final opcodes and errors */ + CG(zend_lineno) = ast->lineno; + if (ce->num_traits == 0) { /* For traits this check is delayed until after trait binding */ zend_check_deprecated_constructor(ce); -- 2.50.1