mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02: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:
parent
a59caa3c33
commit
0e80be83b3
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue