summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2015-07-28 00:56:18 +0200
committerBob Weinand <bobwei9@hotmail.com>2015-07-28 00:57:49 +0200
commit33a91f57e9a749e62631ccc76b850b17fde218ee (patch)
tree90ae4019c81fa45cd09a0a09df0f8622b6881b4c
parentb6bcf9c51ac2b3a679d983e82893839ab5fee5ed (diff)
downloadphp-git-33a91f57e9a749e62631ccc76b850b17fde218ee.tar.gz
Set CG(zend_lineno) to beginning for final class errors/ops
-rw-r--r--Zend/zend_compile.c3
1 files changed, 3 insertions, 0 deletions
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);