Skip to content

Commit 03aa120

Browse files
committed
Fix inaccurate func infos
1 parent 48a34bc commit 03aa120

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ static const func_info_t func_infos[] = {
297297
F1("file_get_contents", MAY_BE_FALSE | MAY_BE_STRING),
298298
F1("stream_context_create", MAY_BE_RESOURCE),
299299
F0("stream_context_set_params", MAY_BE_FALSE | MAY_BE_TRUE),
300-
F1("stream_context_get_params", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
301-
FN("stream_context_get_options", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
300+
F1("stream_context_get_params", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
301+
FN("stream_context_get_options", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
302302
FN("stream_context_get_default", MAY_BE_FALSE | MAY_BE_RESOURCE),
303303
FN("stream_context_set_default", MAY_BE_FALSE | MAY_BE_RESOURCE),
304304
FN("stream_filter_prepend", MAY_BE_FALSE | MAY_BE_RESOURCE),
@@ -312,9 +312,9 @@ static const func_info_t func_infos[] = {
312312
F1("stream_socket_pair", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_RESOURCE),
313313
#endif
314314
F1("stream_get_contents", MAY_BE_FALSE | MAY_BE_STRING),
315-
F1("fgetcsv", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_STRING),
315+
F1("fgetcsv", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_NULL | MAY_BE_ARRAY_OF_STRING),
316316
F1("get_meta_tags", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_STRING),
317-
F1("stream_get_meta_data", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
317+
F1("stream_get_meta_data", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
318318
F1("stream_get_line", MAY_BE_FALSE | MAY_BE_STRING),
319319
F1("stream_get_wrappers", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
320320
F1("stream_get_transports", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
@@ -524,9 +524,9 @@ static const func_info_t func_infos[] = {
524524
F1("curl_file_create", MAY_BE_OBJECT),
525525

526526
/* ext/mbstring */
527-
F1("mb_convert_case", MAY_BE_FALSE | MAY_BE_STRING),
528-
F1("mb_strtoupper", MAY_BE_FALSE | MAY_BE_STRING),
529-
F1("mb_strtolower", MAY_BE_FALSE | MAY_BE_STRING),
527+
F1("mb_convert_case", MAY_BE_STRING),
528+
F1("mb_strtoupper", MAY_BE_STRING),
529+
F1("mb_strtolower", MAY_BE_STRING),
530530
F1("mb_language", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
531531
F1("mb_internal_encoding", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
532532
F1("mb_http_input", MAY_BE_FALSE | MAY_BE_STRING| MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
@@ -539,19 +539,19 @@ static const func_info_t func_infos[] = {
539539
F1("mb_strrchr", MAY_BE_FALSE | MAY_BE_STRING),
540540
F1("mb_stristr", MAY_BE_FALSE | MAY_BE_STRING),
541541
F1("mb_strrichr", MAY_BE_FALSE | MAY_BE_STRING),
542-
F1("mb_substr", MAY_BE_FALSE | MAY_BE_STRING),
542+
F1("mb_substr", MAY_BE_STRING),
543543
F1("mb_strcut", MAY_BE_FALSE | MAY_BE_STRING),
544-
F1("mb_strimwidth", MAY_BE_FALSE | MAY_BE_STRING),
544+
F1("mb_strimwidth", MAY_BE_STRING),
545545
F1("mb_convert_encoding", MAY_BE_FALSE | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY),
546546
F1("mb_detect_encoding", MAY_BE_FALSE | MAY_BE_STRING),
547547
F1("mb_list_encodings", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
548-
F1("mb_encoding_aliases", MAY_BE_FALSE | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
549-
F1("mb_convert_kana", MAY_BE_FALSE | MAY_BE_STRING),
550-
F1("mb_encode_mimeheader", MAY_BE_FALSE | MAY_BE_STRING),
551-
F1("mb_decode_mimeheader", MAY_BE_FALSE | MAY_BE_STRING),
548+
F1("mb_encoding_aliases", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
549+
F1("mb_convert_kana", MAY_BE_STRING),
550+
F1("mb_encode_mimeheader", MAY_BE_STRING),
551+
F1("mb_decode_mimeheader", MAY_BE_STRING),
552552
F1("mb_convert_variables", MAY_BE_FALSE | MAY_BE_STRING),
553-
F1("mb_encode_numericentity", MAY_BE_FALSE | MAY_BE_STRING),
554-
F1("mb_decode_numericentity", MAY_BE_FALSE | MAY_BE_STRING),
553+
F1("mb_encode_numericentity", MAY_BE_STRING),
554+
F1("mb_decode_numericentity", MAY_BE_STRING),
555555
F1("mb_get_info", MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_STRING | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_LONG | MAY_BE_ARRAY_OF_STRING | MAY_BE_ARRAY_OF_ARRAY),
556556

557557
F1("mb_regex_encoding", MAY_BE_FALSE | MAY_BE_TRUE | MAY_BE_STRING),
@@ -579,7 +579,7 @@ static const func_info_t func_infos[] = {
579579

580580
/* ext/xml */
581581
F1("xml_error_string", MAY_BE_NULL | MAY_BE_STRING),
582-
F1("xml_parser_get_option", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_STRING),
582+
F1("xml_parser_get_option", MAY_BE_FALSE | MAY_BE_LONG | MAY_BE_STRING),
583583
F1("utf8_encode", MAY_BE_STRING),
584584
F1("utf8_decode", MAY_BE_STRING),
585585

@@ -612,8 +612,8 @@ static const func_info_t func_infos[] = {
612612
F1("hash_copy", MAY_BE_OBJECT),
613613
F1("hash_algos", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
614614
F1("hash_pbkdf2", MAY_BE_STRING),
615-
F1("mhash_keygen_s2k", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
616-
F1("mhash_get_hash_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
615+
F1("mhash_keygen_s2k", MAY_BE_FALSE | MAY_BE_STRING),
616+
F1("mhash_get_hash_name", MAY_BE_FALSE | MAY_BE_STRING),
617617
F1("mhash", MAY_BE_FALSE | MAY_BE_FALSE | MAY_BE_STRING),
618618

619619
/* ext/sodium */
@@ -650,11 +650,11 @@ static const func_info_t func_infos[] = {
650650
F1("sodium_crypto_scalarmult", MAY_BE_STRING),
651651
F1("sodium_crypto_kx_seed_keypair", MAY_BE_STRING),
652652
F1("sodium_crypto_kx_keypair", MAY_BE_STRING),
653-
F1("sodium_crypto_kx_secretkey", MAY_BE_NULL | MAY_BE_STRING),
654-
F1("sodium_crypto_kx_publickey", MAY_BE_NULL | MAY_BE_STRING),
655-
F1("sodium_crypto_kx_client_session_keys", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
656-
F1("sodium_crypto_kx_server_session_keys", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
657-
F1("sodium_crypto_auth", MAY_BE_NULL | MAY_BE_STRING),
653+
F1("sodium_crypto_kx_secretkey", MAY_BE_STRING),
654+
F1("sodium_crypto_kx_publickey", MAY_BE_STRING),
655+
F1("sodium_crypto_kx_client_session_keys", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
656+
F1("sodium_crypto_kx_server_session_keys", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
657+
F1("sodium_crypto_auth", MAY_BE_STRING),
658658
F1("sodium_crypto_aead_aes256gcm_keygen", MAY_BE_STRING),
659659
F1("sodium_crypto_auth_keygen", MAY_BE_STRING),
660660
F1("sodium_crypto_generichash_keygen", MAY_BE_STRING),

0 commit comments

Comments
 (0)