mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix lineno for cpp assignment
We previously changed the lineno of the property to the cpp argument, but now also update the lineno for RECV and ASSIGN_OBJ. No test because we don't have a way to enable lineno's in the opcode dump, and this is not easily testable through error messages.
This commit is contained in:
@@ -7921,6 +7921,8 @@ static void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32
|
||||
continue;
|
||||
}
|
||||
|
||||
CG(zend_lineno) = param_ast->lineno;
|
||||
|
||||
/* Emit $this->prop = $prop for promoted properties. */
|
||||
zend_string *name = zend_ast_get_str(param_ast->child[1]);
|
||||
znode name_node, value_node;
|
||||
|
||||
Reference in New Issue
Block a user