We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fbdc5a commit 691880bCopy full SHA for 691880b
ext/standard/var_unserializer.re
@@ -559,10 +559,13 @@ string_key:
559
560
if ((old_data = zend_hash_find(ht, Z_STR(key))) != NULL) {
561
if (Z_TYPE_P(old_data) == IS_INDIRECT) {
562
+ /* This is a property with a declaration */
563
old_data = Z_INDIRECT_P(old_data);
564
info = zend_get_typed_property_info_for_slot(obj, old_data);
565
var_push_dtor(var_hash, old_data);
- data = zend_hash_update_ind(ht, Z_STR(key), &d);
566
+ Z_TRY_DELREF_P(old_data);
567
+ ZVAL_COPY_VALUE(old_data, &d);
568
+ data = old_data;
569
570
if (UNEXPECTED(info)) {
571
/* Remember to which property this slot belongs, so we can add a
0 commit comments