mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add ReflectionProperty::getMangledName()
(#18980)
This commit is contained in:
parent
745e81bfd0
commit
d292968f7c
11 changed files with 583 additions and 1 deletions
|
@ -5753,6 +5753,21 @@ ZEND_METHOD(ReflectionProperty, getName)
|
|||
}
|
||||
/* }}} */
|
||||
|
||||
ZEND_METHOD(ReflectionProperty, getMangledName)
|
||||
{
|
||||
reflection_object *intern;
|
||||
property_reference *ref;
|
||||
|
||||
ZEND_PARSE_PARAMETERS_NONE();
|
||||
|
||||
GET_REFLECTION_OBJECT_PTR(ref);
|
||||
if (ref->prop == NULL) {
|
||||
RETURN_STR_COPY(ref->unmangled_name);
|
||||
}
|
||||
|
||||
RETURN_STR_COPY(ref->prop->name);
|
||||
}
|
||||
|
||||
static void _property_check_flag(INTERNAL_FUNCTION_PARAMETERS, int mask) /* {{{ */
|
||||
{
|
||||
reflection_object *intern;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue