]> granicus.if.org Git - php/commitdiff
Set CG(zend_lineno) to beginning for final class errors/ops
authorBob Weinand <bobwei9@hotmail.com>
Mon, 27 Jul 2015 22:56:18 +0000 (00:56 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 27 Jul 2015 22:57:49 +0000 (00:57 +0200)
Zend/zend_compile.c

index f0ddbd478b3dea08bfdf89529efa3898e59870dc..b7be2e94596d2ece6554e9c3edc79282c6a436b7 100644 (file)
@@ -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);