From 0e80be83b3d0618b6816d0ffb06e9678b116b9bb Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Thu, 17 Jul 2025 14:06:02 +0200 Subject: [PATCH] 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. --- Zend/zend_compile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 8e03773246b..4fe06dbea52 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -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;