[php-src] PHP-7.4: getdate() may return array_key_long

From: Date: Wed, 28 Apr 2021 08:48:11 +0000
Subject: [php-src] PHP-7.4: getdate() may return array_key_long
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-115914@lists.php.net to get a copy of this message
Author: Nikita Popov (nikic) Date: 2021-04-28T10:46:37+02:00 Commit: https://github.com/php/php-src/commit/c7387ab92fd31216e6ba8205b7eeae0272ccefcb Raw diff: https://github.com/php/php-src/commit/c7387ab92fd31216e6ba8205b7eeae0272ccefcb.diff getdate() may return array_key_long This function mostly uses string keys, but the timestamp is returned at key 0 (why???) Changed paths: M ext/opcache/Optimizer/zend_func_info.c Diff: diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index 4a0f29b642842..7daeab73f562e 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -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),

« previous php.cvs (#115914) next »