php-src/Zend/tests/attributes
DanielEScherzer cd751f98cb
Reapply GH-17712 with a fix for internal class constants (#18464)
Add recursion protection when emitting deprecation warnings for class
constants, since the deprecation message can come from an attribute that is
using the same constant for the message, or otherwise result in recursion.

But, internal constants are persisted, and thus cannot have recursion
protection. Otherwise, if a user error handler triggers bailout before the
recursion flag is removed then a subsequent request (e.g. with `--repeat 2`)
would start with that flag already applied. Internal constants can presumably
be trusted not to use deprecation messages that come from recursive attributes.

Fixes GH-18463
Fixes GH-17711
2025-05-25 16:43:36 -07:00
..
deprecated Reapply GH-17712 with a fix for internal class constants (#18464) 2025-05-25 16:43:36 -07:00
override Fix #[Override] on traits overriding a parent method without a matching interface (#12205) 2023-09-15 14:57:10 +02:00
001_placement.phpt Run tidy 2020-09-18 14:28:32 +02:00
002_rfcexample.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
003_ast_nodes.phpt Run tidy 2020-09-18 14:28:32 +02:00
004_name_resolution.phpt Fix detection of code outside namespace 2020-09-21 12:37:44 +02:00
005_objects.phpt Leverage object_init_with_constructor() in zend_get_attribute_object() (#14532) 2024-06-10 15:12:22 +02:00
006_filter.phpt Run tidy 2020-09-18 14:28:32 +02:00
007_self_reflect_attribute.phpt Pass flags to #[Attribute] on internal attributes 2021-05-21 11:40:23 +02:00
008_wrong_attribution.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
009_doctrine_annotations_example.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
010_unsupported_const_expression.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
011_inheritance.phpt Run tidy 2020-09-18 14:28:32 +02:00
012_ast_export.phpt RFC: Deprecate remains of string evaluated code assertions (#11671) 2023-07-13 15:45:32 +01:00
013_class_scope.phpt Run tidy 2020-09-18 14:28:32 +02:00
014_class_const_group.phpt Allow attributes to be applied to property/constant groups 2020-09-27 11:35:48 +02:00
015_property_group.phpt Allow attributes to be applied to property/constant groups 2020-09-27 11:35:48 +02:00
016_custom_attribute_validation.phpt Migrate SKIPIF -> EXTENSIONS (#7138) 2021-06-11 11:57:42 +02:00
017_closure_scope.phpt Run tidy 2020-09-18 14:28:32 +02:00
018_fatal_error_in_argument.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
019_variable_attribute_name.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
020_userland_attribute_validation.phpt Run tidy 2020-09-18 14:28:32 +02:00
021_attribute_flags_type_is_validated.phpt Delay #[Attribute] arg validation until runtime 2024-05-06 12:38:56 +02:00
022_attribute_flags_value_is_validated.phpt Delay #[Attribute] arg validation until runtime 2024-05-06 12:38:56 +02:00
023_ast_node_in_validation.phpt Delay #[Attribute] arg validation until runtime 2024-05-06 12:38:56 +02:00
024_internal_target_validation.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
025_internal_repeatable_validation.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
026_unpack_in_args.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
027_trailing_comma_args.phpt Run tidy 2020-09-18 14:28:32 +02:00
028_grouped.phpt Change Attribute Syntax from @@ to #[] 2020-09-02 20:26:50 +02:00
029_reflect_internal_symbols.phpt Initialize attributes for internal functions 2020-09-21 10:50:29 +02:00
030_strict_types.inc Honor strict_types=1 for attributes, improve backtraces 2020-09-27 10:42:58 +02:00
030_strict_types.phpt Honor strict_types=1 for attributes, improve backtraces 2020-09-27 10:42:58 +02:00
031_backtrace.phpt Implement GH-12908: Show attribute name/class in ReflectionAttribute dump 2024-02-04 23:02:02 +01:00
032_attribute_validation_scope.phpt Delay #[Attribute] arg validation until runtime 2024-05-06 12:38:56 +02:00
033_attribute_flags_type_is_not_validated_at_comp_time.phpt Delay #[Attribute] arg validation until runtime 2024-05-06 12:38:56 +02:00
gh8421.phpt Fix GH-8421: Attributes that target functions are not valid for anonymous functions defined within a method 2022-04-23 11:16:28 +02:00
ossfuzz371445205.phpt Fix OSS-Fuzz #371445205: Heap-use-after-free in attr_free 2024-10-11 09:07:08 +02:00