Skip to content

Commit 0e80be8

Browse files
committed
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.
1 parent a59caa3 commit 0e80be8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_compile.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7921,6 +7921,8 @@ static void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32
79217921
continue;
79227922
}
79237923

7924+
CG(zend_lineno) = param_ast->lineno;
7925+
79247926
/* Emit $this->prop = $prop for promoted properties. */
79257927
zend_string *name = zend_ast_get_str(param_ast->child[1]);
79267928
znode name_node, value_node;

0 commit comments

Comments
 (0)