com php-src: Remove redundant zend_func_info for zlib/h ash/session: ext/opcache/Optimizer/zend_func_info.c
| From: | Nikita Popov | Date: | Mon, 07 Oct 2019 08:16:08 +0000 |
| Subject: | com php-src: Remove redundant zend_func_info for zlib/h ash/session: ext/opcache/Optimizer/zend_func_info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-108748@lists.php.net to get a copy of this message | ||
Commit: 52dfe873ab2688c9867e4d4d4d578d991cfff366
Author: Tyson Andre <tysonandre775@hotmail.com> Sun, 6 Oct 2019 13:41:48 -0400
Committer: Nikita Popov <nikita.ppv@gmail.com> Mon, 7 Oct 2019 10:16:08 +0200
Parents: d0f7a7e7c9060d1e0a2873df269e483ea91fdf8f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=52dfe873ab2688c9867e4d4d4d578d991cfff366
Log:
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.
Changed paths:
M ext/opcache/Optimizer/zend_func_info.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c
index 4df8c01b0bb..99dbd748de3 100644
--- a/ext/opcache/Optimizer/zend_func_info.c
+++ b/ext/opcache/Optimizer/zend_func_info.c
@@ -891,15 +891,10 @@ static const func_info_t func_infos[] = {
/* ext/zlib */
F0("readgzfile", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
- F0("gzrewind", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("gzclose", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("gzeof", MAY_BE_FALSE | MAY_BE_TRUE),
F1("gzgetc", MAY_BE_FALSE | MAY_BE_STRING),
F1("gzgets", MAY_BE_FALSE | MAY_BE_STRING),
F1("gzread", MAY_BE_FALSE | MAY_BE_STRING),
F1("gzopen", MAY_BE_NULL | MAY_BE_FALSE |
MAY_BE_RESOURCE),
- F0("gzpassthru", MAY_BE_FALSE | MAY_BE_LONG),
- F0("gzseek", MAY_BE_FALSE | MAY_BE_LONG),
F0("gztell", MAY_BE_FALSE | MAY_BE_LONG),
F0("gzwrite", MAY_BE_FALSE | MAY_BE_LONG),
F0("gzputs", MAY_BE_FALSE | MAY_BE_LONG),
@@ -917,16 +912,12 @@ static const func_info_t func_infos[] = {
/* ext/hash */
F1("hash", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
- F0("hash_equals", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
F1("hash_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F1("hash_hmac", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F1("hash_hmac_algos", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG |
MAY_BE_ARRAY_OF_STRING),
F1("hash_hmac_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F1("hash_hkdf", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F1("hash_init", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
- F0("hash_update", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
- F0("hash_update_stream", MAY_BE_NULL | MAY_BE_LONG),
- F0("hash_update_file", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
F1("hash_final", MAY_BE_NULL | MAY_BE_STRING),
F1("hash_copy", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_OBJECT),
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[] = {
F1("sodium_crypto_aead_xchacha20poly1305_ietf_keygen", MAY_BE_STRING),
/* ext/session */
- F0("session_set_cookie_params", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
F1("session_get_cookie_params", MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_STRING |
MAY_BE_ARRAY_OF_ANY),
F1("session_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F1("session_module_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
- F0("session_set_save_handler", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
F1("session_save_path", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
FN("session_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
- F0("session_regenerate_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
F1("session_create_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F1("session_cache_limiter", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
F0("session_cache_expire", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
F1("session_encode", MAY_BE_FALSE | MAY_BE_STRING),
- F0("session_decode", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
- F0("session_start", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("session_destroy", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("session_unset", MAY_BE_FALSE | MAY_BE_TRUE),
F0("session_gc", MAY_BE_FALSE | MAY_BE_LONG),
- F0("session_write_close", MAY_BE_FALSE | MAY_BE_TRUE),
F0("session_abort", MAY_BE_FALSE | MAY_BE_TRUE),
- F0("session_reset", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE),
- F0("session_status", MAY_BE_NULL | MAY_BE_LONG),
- F0("session_register_shutdown", MAY_BE_NULL),
/* ext/pgsql */
F1("pg_connect", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_RESOURCE),