@@ -7639,7 +7639,7 @@ static bool zend_property_is_virtual(zend_class_entry *ce, zend_string *property
76397639 return is_virtual ;
76407640}
76417641
7642- static void zend_compile_params (zend_ast * ast , zend_ast * return_type_ast , uint32_t fallback_return_type ) /* {{{ */
7642+ static void zend_compile_params (zend_ast_decl * func_decl_ast , zend_ast * ast , zend_ast * return_type_ast , uint32_t fallback_return_type ) /* {{{ */
76437643{
76447644 zend_ast_list * list = zend_ast_get_list (ast );
76457645 uint32_t i ;
@@ -7817,6 +7817,7 @@ static void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast, uint32
78177817 opline = zend_emit_op (NULL , opcode , NULL , & default_node );
78187818 SET_NODE (opline -> result , & var_node );
78197819 opline -> op1 .num = i + 1 ;
7820+ opline -> lineno = func_decl_ast -> start_lineno ;
78207821
78217822 uint32_t arg_info_flags = _ZEND_ARG_INFO_FLAGS (is_ref , is_variadic , /* is_tentative */ 0 )
78227823 | (is_promoted ? _ZEND_IS_PROMOTED_BIT : 0 );
@@ -8457,7 +8458,7 @@ static zend_op_array *zend_compile_func_decl_ex(
84578458 zend_stack_push (& CG (loop_var_stack ), (void * ) & dummy_var );
84588459 }
84598460
8460- zend_compile_params (params_ast , return_type_ast ,
8461+ zend_compile_params (decl , params_ast , return_type_ast ,
84618462 is_method && zend_string_equals_literal (lcname , ZEND_TOSTRING_FUNC_NAME ) ? IS_STRING : 0 );
84628463 if (CG (active_op_array )-> fn_flags & ZEND_ACC_GENERATOR ) {
84638464 zend_mark_function_as_generator ();
0 commit comments