Skip to content

Commit

Permalink
Use GC_DTOR_NO_REF
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdos committed Jan 28, 2025
1 parent a8b5271 commit d93aa1b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Zend/zend_execute.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,7 @@ static zend_always_inline void zend_safe_assign_to_variable_noref(zval *variable
ZEND_ASSERT(Z_TYPE_P(variable_ptr) != IS_REFERENCE);
zend_refcounted *ref = Z_COUNTED_P(variable_ptr);
ZVAL_COPY_VALUE(variable_ptr, value);
if (!GC_DELREF(ref)) {
rc_dtor_func(ref);
} else {
gc_check_possible_root(ref);
}
GC_DTOR_NO_REF(ref);
} else {
ZVAL_COPY_VALUE(variable_ptr, value);
}
Expand Down

0 comments on commit d93aa1b

Please sign in to comment.