Replicate old linenos for class binding

This commit is contained in:
Nikita Popov 2014-07-26 18:36:57 +02:00
parent 1bdc433259
commit 17234d7895
2 changed files with 2 additions and 1 deletions

View File

@ -9,4 +9,4 @@ abstract class bar {
class foo extends bar {
}
--EXPECTF--
Fatal error: Class foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (bar::bar) in %sbug43323.php on line 6
Fatal error: Class foo contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (bar::bar) in %sbug43323.php on line 7

View File

@ -7454,6 +7454,7 @@ void zend_compile_top_stmt(zend_ast *ast TSRMLS_DC) {
zend_verify_namespace(TSRMLS_C);
}
if (ast->kind == ZEND_AST_FUNC_DECL || ast->kind == ZEND_AST_CLASS) {
CG(zend_lineno) = ((zend_ast_decl *) ast)->end_lineno;
zend_do_early_binding(TSRMLS_C);
}
}