mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Support the actual #[\SensitiveParameter]
attribute in stubs (#8836)
This commit is contained in:
parent
f22e0df033
commit
342e18f105
26 changed files with 752 additions and 502 deletions
|
@ -117,19 +117,6 @@ static zend_always_inline zend_attribute *zend_add_class_constant_attribute(zend
|
|||
return zend_add_attribute(&c->attributes, name, argc, flags, 0, 0);
|
||||
}
|
||||
|
||||
static zend_always_inline zend_attribute *zend_mark_function_parameter_as_sensitive(const HashTable *table, const char *func_name, uint32_t parameter)
|
||||
{
|
||||
zend_function *func = zend_hash_str_find_ptr(table, func_name, strlen(func_name));
|
||||
ZEND_ASSERT(func != NULL);
|
||||
|
||||
return zend_add_parameter_attribute(
|
||||
func,
|
||||
parameter,
|
||||
zend_ce_sensitive_parameter->name,
|
||||
0
|
||||
);
|
||||
}
|
||||
|
||||
void zend_register_attribute_ce(void);
|
||||
void zend_attributes_shutdown(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue