From: Bob Weinand Date: Mon, 27 Jul 2015 22:56:18 +0000 (+0200) Subject: Set CG(zend_lineno) to beginning for final class errors/ops X-Git-Tag: php-7.0.0beta3~5^2~88^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33a91f57e9a749e62631ccc76b850b17fde218ee;p=php Set CG(zend_lineno) to beginning for final class errors/ops --- 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);