Skip to content

Commit 5ac2c32

Browse files
committed
fixx passing NULL to update_properties property name arg
1 parent 1d45e32 commit 5ac2c32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

msgpack_unpack.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ static zend_class_entry* msgpack_unserialize_class(zval **container, zend_string
319319
HashTable *props = Z_OBJPROP_P(container_val);
320320
ZEND_HASH_FOREACH_STR_KEY_VAL(HASH_OF(&container_tmp), str_key, val)
321321
{
322-
update_property(ce, props, str_key, val);
322+
if (str_key) {
323+
update_property(ce, props, str_key, val);
324+
}
323325
}
324326
ZEND_HASH_FOREACH_END();
325327
zval_dtor(&container_tmp);

0 commit comments

Comments
 (0)