Skip to content

Commit cdbe39b

Browse files
committed
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.
1 parent 2fe242d commit cdbe39b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Zend/zend_object_handlers.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,8 +1424,7 @@ ZEND_API zval *zend_std_get_static_property_with_info(zend_class_entry *ce, zend
14241424
if (UNEXPECTED((type == BP_VAR_R || type == BP_VAR_RW)
14251425
&& Z_TYPE_P(ret) == IS_UNDEF && ZEND_TYPE_IS_SET(property_info->type))) {
14261426
zend_throw_error(NULL, "Typed static property %s::$%s must not be accessed before initialization",
1427-
ZSTR_VAL(property_info->ce->name),
1428-
zend_get_unmangled_property_name(property_name));
1427+
ZSTR_VAL(property_info->ce->name), ZSTR_VAL(property_name));
14291428
return NULL;
14301429
}
14311430

0 commit comments

Comments
 (0)