Skip to content

Commit c7387ab

Browse files
committed
getdate() may return array_key_long
This function mostly uses string keys, but the timestamp is returned at key 0 (why???)
1 parent 3f71ba2 commit c7387ab

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
@@ -884,7 +884,7 @@ static const func_info_t func_infos[] = {
884884
F1("gmstrftime", MAY_BE_FALSE | MAY_BE_STRING),
885885
F0("time", MAY_BE_LONG),
886886
F1("localtime", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG),
887-
F1("getdate", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
887+
F1("getdate", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
888888
F1("date_create", MAY_BE_FALSE | MAY_BE_OBJECT),
889889
F1("date_create_immutable", MAY_BE_FALSE | MAY_BE_OBJECT),
890890
F1("date_create_from_format", MAY_BE_FALSE | MAY_BE_OBJECT),

0 commit comments

Comments
 (0)