From 9b387ac69ab74953b75a689d055d2e98678168ea Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Mon, 6 May 2024 13:02:25 +0200 Subject: [PATCH] Remove now empty attribute validator --- Zend/zend_attributes.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Zend/zend_attributes.c b/Zend/zend_attributes.c index 08dfd6dc8aa..56bcf668e12 100644 --- a/Zend/zend_attributes.c +++ b/Zend/zend_attributes.c @@ -35,10 +35,6 @@ static zend_object_handlers attributes_object_handlers_sensitive_parameter_value static HashTable internal_attributes; -void validate_attribute(zend_attribute *attr, uint32_t target, zend_class_entry *scope) -{ -} - uint32_t zend_attribute_attribute_get_flags(zend_attribute *attr, zend_class_entry *scope) { // TODO: More proper signature validation: Too many args, incorrect arg names. @@ -367,7 +363,6 @@ void zend_register_attribute_ce(void) zend_ce_attribute = register_class_Attribute(); attr = zend_mark_internal_attribute(zend_ce_attribute); - attr->validator = validate_attribute; zend_ce_return_type_will_change_attribute = register_class_ReturnTypeWillChange(); zend_mark_internal_attribute(zend_ce_return_type_will_change_attribute);