php-src/Zend/tests/function_arguments
Tyson Andre c4ecd82f93
Make inspecting SplFixedArray instances more memory efficient/consistent, change print_r null props handling (#9757)
* Make handling of SplFixedArray properties more consistent

Create a brand new reference counted array every time in SplFixedArray
to be freed by the callers (or return null).
Switch from overriding `get_properties` to overriding `get_properties_for` handler

* Print objects with null hash table like others in print_r

Noticed when working on subsequent commits for SplFixedArray.
Make whether zend_get_properties_for returns null or an empty array
invisible to the end user - it would be always be a non-null array for
user-defined classes.
Always print newlines with `\n\s*(\n\s*)` after objects

Noticed when working on SplFixedArray changes, e.g. in
ext/spl/tests/SplFixedArray__construct_param_null.phpt
2022-10-24 08:33:25 -04: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
sensitive_parameter_arrow_function.phpt
sensitive_parameter_closure.phpt
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