From: Nikita Popov Date: Sun, 18 Feb 2018 15:41:53 +0000 (+0100) Subject: Fix constant() func info X-Git-Tag: php-7.2.4RC1~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40ff0013810c4f2a0b3b5453cc38d9f53d3afe77;p=php Fix constant() func info Since PHP 5.6 this can also be an array. --- diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index 77502caa35..b94cac6256 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -268,8 +268,8 @@ static const func_info_t func_infos[] = { FC("extension_loaded", zend_b_s_info), F1("get_extension_funcs", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), - /* ext/statdard */ - FN("constant", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_STRING | MAY_BE_RESOURCE), + /* ext/standard */ + FN("constant", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_STRING | MAY_BE_RESOURCE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY), F1("bin2hex", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), F1("hex2bin", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), F0("sleep", MAY_BE_FALSE | MAY_BE_LONG),