Remove now empty attribute validator

This commit is contained in:
Ilija Tovilo 2024-05-06 13:02:25 +02:00
parent bb8de67da5
commit 9b387ac69a
No known key found for this signature in database
GPG key ID: A4F5D403F118200A

View file

@ -35,10 +35,6 @@ static zend_object_handlers attributes_object_handlers_sensitive_parameter_value
static HashTable internal_attributes; 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) 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. // 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(); zend_ce_attribute = register_class_Attribute();
attr = zend_mark_internal_attribute(zend_ce_attribute); attr = zend_mark_internal_attribute(zend_ce_attribute);
attr->validator = validate_attribute;
zend_ce_return_type_will_change_attribute = register_class_ReturnTypeWillChange(); zend_ce_return_type_will_change_attribute = register_class_ReturnTypeWillChange();
zend_mark_internal_attribute(zend_ce_return_type_will_change_attribute); zend_mark_internal_attribute(zend_ce_return_type_will_change_attribute);