Skip to content

Commit

Permalink
another no_ref call
Browse files Browse the repository at this point in the history
  • Loading branch information
EmielBruijntjes committed Nov 6, 2023
1 parent 5279a97 commit 595a991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zend/value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ void Value::unset(int index)
if (!isArray()) return;

// if this is not a reference variable, we should detach it to implement copy on write
SEPARATE_ZVAL_NOREF(_val);
SEPARATE_ZVAL_IF_NOT_REF(_val);

// remove the index
zend_hash_index_del(Z_ARRVAL_P(_val.dereference()), index);
Expand Down

0 comments on commit 595a991

Please sign in to comment.