diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-28 00:56:18 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-28 00:57:49 +0200 |
commit | 33a91f57e9a749e62631ccc76b850b17fde218ee (patch) | |
tree | 90ae4019c81fa45cd09a0a09df0f8622b6881b4c | |
parent | b6bcf9c51ac2b3a679d983e82893839ab5fee5ed (diff) | |
download | php-git-33a91f57e9a749e62631ccc76b850b17fde218ee.tar.gz |
Set CG(zend_lineno) to beginning for final class errors/ops
-rw-r--r-- | Zend/zend_compile.c | 3 |
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); |