diff options
author | Tyson Andre <tysonandre775@hotmail.com> | 2019-12-01 10:51:57 -0500 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-12-04 07:40:25 +0100 |
commit | 0dbc24c3fa835b72b9bbe3d3cbfea4a3286cabef (patch) | |
tree | 2a43d3d1134b3ca3457ff231e884e9fb8e61622a | |
parent | 5624d2eb00af10c3c57916bea8f08ed3505bdb19 (diff) | |
download | php-git-0dbc24c3fa835b72b9bbe3d3cbfea4a3286cabef.tar.gz |
Fix other incorrect opcache types
Closes GH-4959.
-rw-r--r-- | ext/opcache/Optimizer/zend_func_info.c | 83 |
1 files changed, 42 insertions, 41 deletions
diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index 855ff42c3d..6c28914e3c 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -119,8 +119,6 @@ static const func_info_t func_infos[] = { 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_STRING), F1("hex2bin", MAY_BE_FALSE | MAY_BE_STRING), - F0("sleep", MAY_BE_FALSE | MAY_BE_LONG), - F0("usleep", MAY_BE_NULL | MAY_BE_FALSE), #if HAVE_NANOSLEEP F1("time_nanosleep", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG), F0("time_sleep_until", MAY_BE_FALSE | MAY_BE_TRUE), @@ -129,7 +127,7 @@ static const func_info_t func_infos[] = { F1("strptime", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING), #endif F0("flush", MAY_BE_NULL), - F1("wordwrap", MAY_BE_FALSE | MAY_BE_STRING), + F1("wordwrap", MAY_BE_STRING), F1("htmlspecialchars", MAY_BE_STRING), F1("htmlentities", MAY_BE_STRING), FN("html_entity_decode", MAY_BE_FALSE | MAY_BE_STRING), @@ -175,8 +173,8 @@ static const func_info_t func_infos[] = { F1("stristr", MAY_BE_FALSE | MAY_BE_STRING), F1("strrchr", MAY_BE_FALSE | MAY_BE_STRING), F1("str_shuffle", MAY_BE_STRING), - F1("str_word_count", MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), - F1("str_split", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), + F1("str_word_count", MAY_BE_LONG | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), + F1("str_split", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), F1("strpbrk", MAY_BE_FALSE | MAY_BE_STRING), F0("substr_compare", MAY_BE_FALSE | MAY_BE_LONG), #ifdef HAVE_STRFMON @@ -188,14 +186,14 @@ static const func_info_t func_infos[] = { FN("ucfirst", MAY_BE_STRING), FN("lcfirst", MAY_BE_STRING), F1("ucwords", MAY_BE_STRING), - FN("strtr", MAY_BE_FALSE | MAY_BE_STRING), + FN("strtr", MAY_BE_STRING), FN("addslashes", MAY_BE_STRING), F1("addcslashes", MAY_BE_STRING), FN("rtrim", MAY_BE_STRING), FN("chop", MAY_BE_STRING), FN("str_replace", MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY | MAY_BE_ARRAY_OF_OBJECT), FN("str_ireplace", MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY | MAY_BE_ARRAY_OF_OBJECT), - F1("str_repeat", MAY_BE_NULL | MAY_BE_STRING), + F1("str_repeat", MAY_BE_STRING), F1("count_chars", MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_LONG), F1("chunk_split", MAY_BE_STRING), FN("trim", MAY_BE_STRING), @@ -212,8 +210,8 @@ static const func_info_t func_infos[] = { F1("soundex", MAY_BE_FALSE | MAY_BE_STRING), F0("levenshtein", MAY_BE_LONG), F1("chr", MAY_BE_STRING), - F1("str_getcsv", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_STRING), - FN("str_pad", MAY_BE_NULL | MAY_BE_STRING), + F1("str_getcsv", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_STRING), + FN("str_pad", MAY_BE_STRING), F1("strchr", MAY_BE_FALSE | MAY_BE_STRING), F1("sprintf", MAY_BE_FALSE | MAY_BE_STRING), F0("printf", MAY_BE_FALSE | MAY_BE_LONG), @@ -244,19 +242,15 @@ static const func_info_t func_infos[] = { F1("shell_exec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), #ifdef PHP_CAN_SUPPORT_PROC_OPEN F1("proc_open", MAY_BE_FALSE | MAY_BE_RESOURCE), - F0("proc_close", MAY_BE_FALSE | MAY_BE_LONG), F0("proc_terminate", MAY_BE_FALSE | MAY_BE_TRUE), - F1("proc_get_status", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING), + F1("proc_get_status", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING), #endif #ifdef HAVE_NICE F0("proc_nice", MAY_BE_FALSE | MAY_BE_TRUE), #endif - F0("rand", MAY_BE_NULL | MAY_BE_LONG), F1("random_bytes", MAY_BE_STRING), F1("random_int", MAY_BE_LONG), F0("srand", MAY_BE_NULL), - F0("getrandmax", MAY_BE_NULL | MAY_BE_LONG), - F0("mt_rand", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG), F0("mt_srand", MAY_BE_NULL), F0("mt_getrandmax", MAY_BE_LONG), #if HAVE_GETSERVBYNAME @@ -286,7 +280,6 @@ static const func_info_t func_infos[] = { F0("abs", MAY_BE_LONG | MAY_BE_DOUBLE), F0("ceil", MAY_BE_DOUBLE), F0("floor", MAY_BE_DOUBLE), - F0("round", MAY_BE_FALSE | MAY_BE_DOUBLE), F0("expm1", MAY_BE_DOUBLE), F0("log1p", MAY_BE_DOUBLE), F1("pow", MAY_BE_NULL | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_OBJECT), @@ -356,7 +349,6 @@ static const func_info_t func_infos[] = { F0("memory_get_usage", MAY_BE_FALSE | MAY_BE_LONG), F0("memory_get_peak_usage", MAY_BE_FALSE | MAY_BE_LONG), F0("register_shutdown_function", MAY_BE_NULL | MAY_BE_FALSE), - F0("register_tick_function", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), F0("unregister_tick_function", MAY_BE_NULL), F1("highlight_file", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING), F1("show_source", MAY_BE_FALSE | MAY_BE_STRING), @@ -365,13 +357,13 @@ static const func_info_t func_infos[] = { FN("ini_get", MAY_BE_FALSE | MAY_BE_STRING), F1("ini_get_all", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY), FN("ini_set", MAY_BE_FALSE | MAY_BE_STRING), - F1("ini_alter", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("ini_alter", MAY_BE_FALSE | MAY_BE_STRING), F0("ini_restore", MAY_BE_NULL), F1("get_include_path", MAY_BE_FALSE | MAY_BE_STRING), F1("set_include_path", MAY_BE_FALSE | MAY_BE_STRING), F0("restore_include_path", MAY_BE_NULL), F1("headers_list", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), - F0("http_response_code", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG), + F0("http_response_code", MAY_BE_FALSE | MAY_BE_LONG), F0("connection_aborted", MAY_BE_LONG), F0("connection_status", MAY_BE_LONG), F0("ignore_user_abort", MAY_BE_LONG), @@ -498,7 +490,6 @@ static const func_info_t func_infos[] = { F0("chroot", MAY_BE_FALSE | MAY_BE_TRUE), #endif F1("getcwd", MAY_BE_FALSE | MAY_BE_STRING), - F0("rewinddir", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), F1("readdir", MAY_BE_FALSE | MAY_BE_STRING), F1("dir", MAY_BE_FALSE | MAY_BE_OBJECT), F1("scandir", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), @@ -538,6 +529,7 @@ static const func_info_t func_infos[] = { F0("mail", MAY_BE_FALSE | MAY_BE_TRUE), F0("ezmlm_hash", MAY_BE_LONG), #ifdef HAVE_SYSLOG_H + F0("syslog", MAY_BE_TRUE), F0("closelog", MAY_BE_TRUE), #endif F1("metaphone", MAY_BE_FALSE | MAY_BE_STRING), @@ -547,6 +539,17 @@ static const func_info_t func_infos[] = { F1("ob_get_status", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY), FN("ob_get_contents", MAY_BE_FALSE | MAY_BE_STRING), F1("ob_list_handlers", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), + F0("array_walk", MAY_BE_TRUE), + F0("array_walk_recursive", MAY_BE_TRUE), + F0("arsort", MAY_BE_TRUE), + F0("asort", MAY_BE_TRUE), + F0("krsort", MAY_BE_TRUE), + F0("ksort", MAY_BE_TRUE), + F0("shuffle", MAY_BE_TRUE), + F0("sort", MAY_BE_TRUE), + F0("usort", MAY_BE_TRUE), + F0("uasort", MAY_BE_TRUE), + F0("uksort", MAY_BE_TRUE), FN("end", UNKNOWN_INFO), FN("prev", UNKNOWN_INFO), FN("next", UNKNOWN_INFO), @@ -662,14 +665,14 @@ static const func_info_t func_infos[] = { F1("date_sun_info", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_FALSE | MAY_BE_ARRAY_OF_TRUE | MAY_BE_ARRAY_OF_LONG), /* ext/preg */ - F0("preg_match", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG), + F0("preg_match", MAY_BE_FALSE | MAY_BE_LONG), F0("preg_match_all", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG), - FN("preg_replace", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING), - FN("preg_replace_callback", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING), - F1("preg_filter", MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING), - F1("preg_split", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY), + FN("preg_replace", MAY_BE_NULL | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING), + FN("preg_replace_callback", MAY_BE_NULL | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING), + F1("preg_filter", MAY_BE_NULL | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_STRING), + F1("preg_split", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY), FN("preg_quote", MAY_BE_STRING), - F1("preg_grep", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY), + F1("preg_grep", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_REF | MAY_BE_ARRAY_OF_ANY), /* ext/mysqli */ F1("mysqli_connect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT), @@ -775,19 +778,17 @@ static const func_info_t func_infos[] = { /* ext/curl */ F1("curl_init", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE), F1("curl_copy_handle", MAY_BE_NULL | MAY_BE_RESOURCE), - F1("curl_version", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY), - FN("curl_exec", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("curl_version", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY), + FN("curl_exec", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING), F1("curl_getinfo", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_LONG | MAY_BE_DOUBLE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY), F1("curl_error", MAY_BE_STRING), F1("curl_strerror", MAY_BE_NULL | MAY_BE_STRING), F1("curl_multi_strerror", MAY_BE_NULL | MAY_BE_STRING), - F1("curl_escape", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), - F1("curl_unescape", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("curl_escape", MAY_BE_FALSE | MAY_BE_STRING), + F1("curl_unescape", MAY_BE_FALSE | MAY_BE_STRING), F1("curl_multi_init", MAY_BE_RESOURCE), FN("curl_multi_getcontent", MAY_BE_NULL | MAY_BE_STRING), - F1("curl_multi_info_read", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_RESOURCE), - F0("curl_multi_close", MAY_BE_NULL | MAY_BE_FALSE), - F0("curl_multi_setopt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F1("curl_multi_info_read", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_RESOURCE), F1("curl_share_init", MAY_BE_RESOURCE), F1("curl_file_create", MAY_BE_OBJECT), @@ -882,13 +883,13 @@ static const func_info_t func_infos[] = { F0("gztell", MAY_BE_FALSE | MAY_BE_LONG), F0("gzwrite", MAY_BE_FALSE | MAY_BE_LONG), F0("gzputs", MAY_BE_FALSE | MAY_BE_LONG), - F1("gzfile", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), - F1("gzcompress", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), - F1("gzuncompress", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), - F1("gzdeflate", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), - F1("gzinflate", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), - F1("gzencode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), - F1("gzdecode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("gzfile", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), + F1("gzcompress", MAY_BE_FALSE | MAY_BE_STRING), + F1("gzuncompress", MAY_BE_FALSE | MAY_BE_STRING), + F1("gzdeflate", MAY_BE_FALSE | MAY_BE_STRING), + F1("gzinflate", MAY_BE_FALSE | MAY_BE_STRING), + F1("gzencode", MAY_BE_FALSE | MAY_BE_STRING), + F1("gzdecode", MAY_BE_FALSE | MAY_BE_STRING), F1("zlib_encode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), F1("zlib_decode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), F1("zlib_get_coding_type", MAY_BE_FALSE | MAY_BE_STRING), @@ -1134,8 +1135,8 @@ static const func_info_t func_infos[] = { /* ext/fileinfo */ F1("finfo_open", MAY_BE_FALSE | MAY_BE_RESOURCE), - F1("finfo_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), - F1("finfo_buffer", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("finfo_file", MAY_BE_FALSE | MAY_BE_STRING), + F1("finfo_buffer", MAY_BE_FALSE | MAY_BE_STRING), F1("mime_content_type", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), /* ext/gd */ |