Add ReflectionProperty::getMangledName() (#18980)

This commit is contained in:
Alexandre Daubois 2025-07-22 21:24:27 +02:00 committed by GitHub
parent 745e81bfd0
commit d292968f7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 583 additions and 1 deletions

View file

@ -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;