Skip to content

Commit 52dfe87

Browse files
TysonAndrenikic
authored andcommitted
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`). Closes GH-4787.
1 parent d0f7a7e commit 52dfe87

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

ext/opcache/Optimizer/zend_func_info.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -891,15 +891,10 @@ static const func_info_t func_infos[] = {
891891

892892
/* ext/zlib */
893893
F0("readgzfile", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
894-
F0("gzrewind", MAY_BE_FALSE | MAY_BE_TRUE),
895-
F0("gzclose", MAY_BE_FALSE | MAY_BE_TRUE),
896-
F0("gzeof", MAY_BE_FALSE | MAY_BE_TRUE),
897894
F1("gzgetc", MAY_BE_FALSE | MAY_BE_STRING),
898895
F1("gzgets", MAY_BE_FALSE | MAY_BE_STRING),
899896
F1("gzread", MAY_BE_FALSE | MAY_BE_STRING),
900897
F1("gzopen", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),
901-
F0("gzpassthru", MAY_BE_FALSE | MAY_BE_LONG),
902-
F0("gzseek", MAY_BE_FALSE | MAY_BE_LONG),
903898
F0("gztell", MAY_BE_FALSE | MAY_BE_LONG),
904899
F0("gzwrite", MAY_BE_FALSE | MAY_BE_LONG),
905900
F0("gzputs", MAY_BE_FALSE | MAY_BE_LONG),
@@ -917,16 +912,12 @@ static const func_info_t func_infos[] = {
917912

918913
/* ext/hash */
919914
F1("hash", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
920-
F0("hash_equals", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
921915
F1("hash_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
922916
F1("hash_hmac", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
923917
F1("hash_hmac_algos", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
924918
F1("hash_hmac_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
925919
F1("hash_hkdf", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
926920
F1("hash_init", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
927-
F0("hash_update", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
928-
F0("hash_update_stream", MAY_BE_NULL | MAY_BE_LONG),
929-
F0("hash_update_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
930921
F1("hash_final", MAY_BE_NULL | MAY_BE_STRING),
931922
F1("hash_copy", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
932923
F1("hash_algos", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING),
@@ -1016,28 +1007,17 @@ static const func_info_t func_infos[] = {
10161007
F1("sodium_crypto_aead_xchacha20poly1305_ietf_keygen", MAY_BE_STRING),
10171008

10181009
/* ext/session */
1019-
F0("session_set_cookie_params", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
10201010
F1("session_get_cookie_params", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING | MAY_BE_ARRAY_OF_ANY),
10211011
F1("session_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
10221012
F1("session_module_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1023-
F0("session_set_save_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
10241013
F1("session_save_path", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
10251014
FN("session_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
1026-
F0("session_regenerate_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
10271015
F1("session_create_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
10281016
F1("session_cache_limiter", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
10291017
F0("session_cache_expire", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
10301018
F1("session_encode", MAY_BE_FALSE | MAY_BE_STRING),
1031-
F0("session_decode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1032-
F0("session_start", MAY_BE_FALSE | MAY_BE_TRUE),
1033-
F0("session_destroy", MAY_BE_FALSE | MAY_BE_TRUE),
1034-
F0("session_unset", MAY_BE_FALSE | MAY_BE_TRUE),
10351019
F0("session_gc", MAY_BE_FALSE | MAY_BE_LONG),
1036-
F0("session_write_close", MAY_BE_FALSE | MAY_BE_TRUE),
10371020
F0("session_abort", MAY_BE_FALSE | MAY_BE_TRUE),
1038-
F0("session_reset", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
1039-
F0("session_status", MAY_BE_NULL | MAY_BE_LONG),
1040-
F0("session_register_shutdown", MAY_BE_NULL),
10411021

10421022
/* ext/pgsql */
10431023
F1("pg_connect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),

0 commit comments

Comments
 (0)