} else if (*property == value) {
retval = SUCCESS;
} else {
+ value->refcount++;
if (PZVAL_IS_REF(*property)) {
zval_dtor(*property);
(*property)->type = value->type;
retval = SUCCESS;
}
- if (!value->refcount) {
- zval_dtor(value);
- FREE_ZVAL(value);
- }
-
EG(scope) = old_scope;
return retval;