Skip to content

Commit

Permalink
getdate() may return array_key_long
Browse files Browse the repository at this point in the history
This function mostly uses string keys, but the timestamp is
returned at key 0 (why???)
  • Loading branch information
nikic committed Apr 28, 2021
1 parent 3f71ba2 commit c7387ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/opcache/Optimizer/zend_func_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ static const func_info_t func_infos[] = {
F1("gmstrftime", MAY_BE_FALSE | MAY_BE_STRING),
F0("time", MAY_BE_LONG),
F1("localtime", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG),
F1("getdate", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
F1("getdate", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING),
F1("date_create", MAY_BE_FALSE | MAY_BE_OBJECT),
F1("date_create_immutable", MAY_BE_FALSE | MAY_BE_OBJECT),
F1("date_create_from_format", MAY_BE_FALSE | MAY_BE_OBJECT),
Expand Down

0 comments on commit c7387ab

Please sign in to comment.