From cdbe39b16a76b09d56f22736be1f3b37ff7ba391 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 9 Jul 2021 12:34:35 +0200 Subject: [PATCH] Remove unnecessary property name unmangling The property name isn't mangled in this context. Unmangling would only be necessary if we used the name stored in the property_info. --- Zend/zend_object_handlers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index b11952cf231..0e4ed78c1df 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -1424,8 +1424,7 @@ undeclared_property: if (UNEXPECTED((type == BP_VAR_R || type == BP_VAR_RW) && Z_TYPE_P(ret) == IS_UNDEF && ZEND_TYPE_IS_SET(property_info->type))) { zend_throw_error(NULL, "Typed static property %s::$%s must not be accessed before initialization", - ZSTR_VAL(property_info->ce->name), - zend_get_unmangled_property_name(property_name)); + ZSTR_VAL(property_info->ce->name), ZSTR_VAL(property_name)); return NULL; }