Skip to content

Commit ab40d75

Browse files
committed
Fix variable shadowing in array_column()
1 parent b88ab34 commit ab40d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4674,8 +4674,8 @@ PHP_FUNCTION(array_column)
46744674
continue;
46754675
}
46764676

4677-
zval rv;
4678-
zval *keyval = array_column_fetch_prop(data, index_str, index_long, cache_slot_index, &rv);
4677+
zval ignored_rv;
4678+
zval *keyval = array_column_fetch_prop(data, index_str, index_long, cache_slot_index, &ignored_rv);
46794679
if (keyval) {
46804680
array_set_zval_key(Z_ARRVAL_P(return_value), keyval, colval);
46814681
zval_ptr_dtor(colval);

0 commit comments

Comments
 (0)