From 40ff0013810c4f2a0b3b5453cc38d9f53d3afe77 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sun, 18 Feb 2018 16:41:53 +0100 Subject: [PATCH] Fix constant() func info Since PHP 5.6 this can also be an array. --- ext/opcache/Optimizer/zend_func_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), -- 2.40.0