Skip to content

Commit 5acab7e

Browse files
committed
filter_var_array() may return array_of_ref
This function preserves references in the input array.
1 parent 67c4d1f commit 5acab7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ static const func_info_t func_infos[] = {
14451445
FN("filter_input", UNKNOWN_INFO),
14461446
FN("filter_var", UNKNOWN_INFO),
14471447
F1("filter_input_array", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
1448-
F1("filter_var_array", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
1448+
F1("filter_var_array", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF),
14491449
I1("filter_list", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
14501450
F0("filter_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
14511451

0 commit comments

Comments
 (0)