Skip to content

Commit b4a6466

Browse files
committed
Remove redundant zend_func_info for zlib/hash/session
E.g. hash_equals is outdated - it has a non-null reflection type of bool. Remove redundant signatures for types that are obviously not reference counted (`F0`).
1 parent 058fed6 commit b4a6466

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -896,9 +896,6 @@ static const func_info_t func_infos[] = {
896896

897897
/* ext/zlib */
898898
F0("readgzfile", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
899-
F0("gzrewind", MAY_BE_FALSE | MAY_BE_TRUE),
900-
F0("gzclose", MAY_BE_FALSE | MAY_BE_TRUE),
901-
F0("gzeof", MAY_BE_FALSE | MAY_BE_TRUE),
902899
F1("gzgetc", MAY_BE_FALSE | MAY_BE_STRING),
903900
F1("gzgets", MAY_BE_FALSE | MAY_BE_STRING),
904901
F1("gzread", MAY_BE_FALSE | MAY_BE_STRING),
@@ -922,16 +919,12 @@ static const func_info_t func_infos[] = {
922919

923920
/* ext/hash */
924921
F1("hash", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
925-
F0("hash_equals", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
926922
F1("hash_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
927923
F1("hash_hmac", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
928924
F1("hash_hmac_algos", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
929925
F1("hash_hmac_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
930926
F1("hash_hkdf", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
931927
F1("hash_init", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
932-
F0("hash_update", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
933-
F0("hash_update_stream", MAY_BE_NULL | MAY_BE_LONG),
934-
F0("hash_update_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
935928
F1("hash_final", MAY_BE_NULL | MAY_BE_STRING),
936929
F1("hash_copy", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
937930
F1("hash_algos", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
@@ -1021,28 +1014,17 @@ static const func_info_t func_infos[] = {
10211014
F1("sodium_crypto_aead_xchacha20poly1305_ietf_keygen", MAY_BE_STRING),
10221015

10231016
/* ext/session */
1024-
F0("session_set_cookie_params", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
10251017
F1("session_get_cookie_params", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
10261018
F1("session_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
10271019
F1("session_module_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1028-
F0("session_set_save_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
10291020
F1("session_save_path", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
10301021
FN("session_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1031-
F0("session_regenerate_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
10321022
F1("session_create_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
10331023
F1("session_cache_limiter", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
10341024
F0("session_cache_expire", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
10351025
F1("session_encode", MAY_BE_FALSE | MAY_BE_STRING),
1036-
F0("session_decode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1037-
F0("session_start", MAY_BE_FALSE | MAY_BE_TRUE),
1038-
F0("session_destroy", MAY_BE_FALSE | MAY_BE_TRUE),
1039-
F0("session_unset", MAY_BE_FALSE | MAY_BE_TRUE),
10401026
F0("session_gc", MAY_BE_FALSE | MAY_BE_LONG),
1041-
F0("session_write_close", MAY_BE_FALSE | MAY_BE_TRUE),
10421027
F0("session_abort", MAY_BE_FALSE | MAY_BE_TRUE),
1043-
F0("session_reset", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1044-
F0("session_status", MAY_BE_NULL | MAY_BE_LONG),
1045-
F0("session_register_shutdown", MAY_BE_NULL),
10461028

10471029
/* ext/pgsql */
10481030
F1("pg_connect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),

0 commit comments

Comments
 (0)