Skip to content

Commit b3cc8a8

Browse files
committed
Use ZVAL_DEINDIRECT
1 parent ca79b10 commit b3cc8a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/standard/array.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,9 +1037,7 @@ static void ia_return_current(zval *return_value, HashTable *array)
10371037
RETURN_FALSE;
10381038
}
10391039

1040-
if (Z_TYPE_P(entry) == IS_INDIRECT) {
1041-
entry = Z_INDIRECT_P(entry);
1042-
}
1040+
ZVAL_DEINDIRECT(entry);
10431041

10441042
/* Possible with an uninitialized typed property */
10451043
if (Z_TYPE_P(entry) == IS_UNDEF) {

0 commit comments

Comments
 (0)