mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Replicate old linenos for class binding
This commit is contained in:
parent
1bdc433259
commit
17234d7895
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user