Skip to content

Commit 5f7d376

Browse files
committed
Use get_property_info_for slot while unsetting properties as well
1 parent 9360955 commit 5f7d376

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_object_handlers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,8 +1075,8 @@ ZEND_API void zend_std_unset_property(zval *object, zval *member, void **cache_s
10751075

10761076
if (Z_TYPE_P(slot) != IS_UNDEF) {
10771077
if (UNEXPECTED(Z_ISREF_P(slot)) && Z_REFCOUNT_P(slot) > 1) {
1078-
zend_property_info *prop_info = zend_object_fetch_property_type_info(zobj->ce, name, cache_slot);
1079-
if (UNEXPECTED(prop_info != NULL)) {
1078+
zend_property_info *prop_info = zend_get_property_info_for_slot(zobj, slot);
1079+
if (UNEXPECTED(prop_info->type)) {
10801080
ZEND_REF_DEL_TYPE_SOURCE(Z_REF_P(slot), prop_info);
10811081
}
10821082
}

0 commit comments

Comments
 (0)