php-src/Zend/tests/function_arguments
Tim Düsterhus 08b2ab22f4
Include the source location in Closure names (#13550)
* Include the source location in Closure names

This change makes stack traces involving Closures, especially multiple
different Closures, much more useful, because it's more easily visible *which*
closure was called for a given stack frame.

The implementation is similar to that of anonymous classes which already
include the file name and line number within their generated classname.

* Update scripts/dev/bless_tests.php for closure naming

* Adjust existing tests for closure naming

* Adjust tests for closure naming that were not caught locally

* Drop the namespace from closure names

This is redundant with the included filename.

* Include filename and line number as separate keys in Closure debug info

* Fix test

* Fix test

* Include the surrounding class and function name in closure names

* Fix test

* Relax test expecations

* Fix tests after merge

* NEWS / UPGRADING
2024-04-12 18:21:13 +02:00
..
argument_count_correct_strict.phpt
argument_count_correct.phpt
argument_count_incorrect_internal_strict.phpt
argument_count_incorrect_internal.phpt
argument_count_incorrect_userland_strict.phpt
argument_count_incorrect_userland.phpt
call_with_leading_comma_error.phpt
call_with_multi_inner_comma_error.phpt
call_with_multi_trailing_comma_error.phpt
call_with_only_comma_error.phpt
call_with_trailing_comma_basic.phpt Include the source location in Closure names (#13550) 2024-04-12 18:21:13 +02:00
sensitive_parameter_arrow_function.phpt Include the source location in Closure names (#13550) 2024-04-12 18:21:13 +02:00
sensitive_parameter_closure.phpt Include the source location in Closure names (#13550) 2024-04-12 18:21:13 +02:00
sensitive_parameter_correctly_captures_original.phpt
sensitive_parameter_eval_call.phpt
sensitive_parameter_eval_define.phpt
sensitive_parameter_extra_arguments.phpt
sensitive_parameter_multiple_arguments.phpt
sensitive_parameter_named_arguments.phpt
sensitive_parameter_nested_calls.phpt
sensitive_parameter_value_clone.phpt
sensitive_parameter_value_keeps_object_alive.phpt
sensitive_parameter_value_no_dynamic_property.phpt
sensitive_parameter_value_reflection.phpt
sensitive_parameter_value_serialize.phpt
sensitive_parameter_value_to_string.phpt
sensitive_parameter_value.phpt Make inspecting SplFixedArray instances more memory efficient/consistent, change print_r null props handling (#9757) 2022-10-24 08:33:25 -04:00
sensitive_parameter_variadic_arguments.phpt
sensitive_parameter.phpt
variadic_argument_type_error.phpt