com php-src: Complete func infos for session and sodium: ext/opcache/Optimizer/zend_func_info.c
| From: | Xinchen Hui | Date: | Fri, 08 Sep 2017 03:23:19 +0000 |
| Subject: | com php-src: Complete func infos for session and sodium: ext/opcache/Optimizer/zend_func_info.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99319@lists.php.net to get a copy of this message | ||
Commit: bedb4ef2971dea167597fc1ce2798083f47f575c
Author: Xinchen Hui <laruence@gmail.com> Fri, 8 Sep 2017 11:23:19 +0800
Parents: 7b1d96cd522651acd6bd3dfb3859ccb59cf301b7
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bedb4ef2971dea167597fc1ce2798083f47f575c
Log:
Complete func infos for session and sodium
Changed paths:
M ext/opcache/Optimizer/zend_func_info.c
diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index bca21b8..eb4415a 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -13,6 +13,7 @@ | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Dmitry Stogov <dmitry@zend.com> | + | Xinchen Hui <laruence@php.net> | +----------------------------------------------------------------------+ */ @@ -1302,6 +1303,109 @@ static const func_info_t func_infos[] = { F1("mhash_get_hash_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), F0("mhash_count", MAY_BE_NULL | MAY_BE_LONG), F1("mhash", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + + /* ext/sodium */ + F0("sodium_memzero", MAY_BE_NULL), + F0("sodium_increment", MAY_BE_NULL), + F0("sodium_add", MAY_BE_NULL), + F0("sodium_memcmp", MAY_BE_NULL | MAY_BE_LONG), + F1("sodium_crypto_shorthash", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_secretbox", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_secretbox_open", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_generichash", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_generichash_init", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_generichash_update", MAY_BE_NULL | MAY_BE_TRUE), + F1("sodium_crypto_generichash_final", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_seed_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_open", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_box_seal", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_seal_open", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_sign_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_seed_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_open", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_sign_detached", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_sign_verify_detached", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F1("sodium_crypto_stream", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_stream_xor", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_pwhash", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_pwhash_str", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_pwhash_str_verify", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F1("sodium_crypto_aead_aes256gcm_encrypt", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_aes256gcm_decrypt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_bin2hex", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_hex2bin", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_scalarmult", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_seed_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_client_session_keys", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), + F1("sodium_crypto_kx_server_session_keys", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), + F1("sodium_crypto_auth", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_auth_verify", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("sodium_compare", MAY_BE_NULL | MAY_BE_LONG), + F1("sodium_crypto_aead_aes256gcm_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_auth_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_generichash_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kdf_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_secretbox_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_shorthash_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_stream_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kdf_derive_from_key", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_pad", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_unpad", MAY_BE_NULL | MAY_BE_STRING), + + F1("sodium_crypto_box_keypair_from_secretkey_and_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_publickey_from_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_keypair_from_secretkey_and_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_publickey_from_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_pwhash_scryptsalsa208sha256", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_pwhash_scryptsalsa208sha256_str", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_pwhash_scryptsalsa208sha256_str_verify", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("sodium_crypto_aead_aes256gcm_is_available", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F1("sodium_crypto_sign_ed25519_sk_to_curve25519", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_ed25519_pk_to_curve25519", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_encrypt", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_decrypt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_ietf_encrypt", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_ietf_decrypt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_aead_xchacha20poly1305_ietf_encrypt", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_xchacha20poly1305_ietf_decrypt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_ietf_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_xchacha20poly1305_ietf_keygen", MAY_BE_NULL | 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_NULL | 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_NULL | 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_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("session_unset", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("session_gc", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG), + F0("session_write_close", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("session_abort", MAY_BE_NULL | 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), + I0("session_register_shutdown", MAY_BE_NULL), + }; static HashTable func_info;
diff --git a/ext/opcache/Optimizer/zend_func_info.c b/ext/opcache/Optimizer/zend_func_info.c index bca21b8..eb4415a 100644 --- a/ext/opcache/Optimizer/zend_func_info.c +++ b/ext/opcache/Optimizer/zend_func_info.c @@ -13,6 +13,7 @@ | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Dmitry Stogov <dmitry@zend.com> | + | Xinchen Hui <laruence@php.net> | +----------------------------------------------------------------------+ */ @@ -1302,6 +1303,109 @@ static const func_info_t func_infos[] = { F1("mhash_get_hash_name", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), F0("mhash_count", MAY_BE_NULL | MAY_BE_LONG), F1("mhash", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + + /* ext/sodium */ + F0("sodium_memzero", MAY_BE_NULL), + F0("sodium_increment", MAY_BE_NULL), + F0("sodium_add", MAY_BE_NULL), + F0("sodium_memcmp", MAY_BE_NULL | MAY_BE_LONG), + F1("sodium_crypto_shorthash", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_secretbox", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_secretbox_open", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_generichash", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_generichash_init", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_generichash_update", MAY_BE_NULL | MAY_BE_TRUE), + F1("sodium_crypto_generichash_final", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_seed_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_open", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_box_seal", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_seal_open", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_sign_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_seed_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_open", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_sign_detached", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_sign_verify_detached", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F1("sodium_crypto_stream", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_stream_xor", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_pwhash", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_pwhash_str", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_pwhash_str_verify", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F1("sodium_crypto_aead_aes256gcm_encrypt", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_aes256gcm_decrypt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_bin2hex", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_hex2bin", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_scalarmult", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_seed_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_keypair", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kx_client_session_keys", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), + F1("sodium_crypto_kx_server_session_keys", MAY_BE_NULL | MAY_BE_ARRAY | MAY_BE_ARRAY_KEY_LONG | MAY_BE_ARRAY_OF_STRING), + F1("sodium_crypto_auth", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_auth_verify", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("sodium_compare", MAY_BE_NULL | MAY_BE_LONG), + F1("sodium_crypto_aead_aes256gcm_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_auth_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_generichash_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kdf_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_secretbox_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_shorthash_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_stream_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_kdf_derive_from_key", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_pad", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_unpad", MAY_BE_NULL | MAY_BE_STRING), + + F1("sodium_crypto_box_keypair_from_secretkey_and_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_box_publickey_from_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_keypair_from_secretkey_and_publickey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_publickey_from_secretkey", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_pwhash_scryptsalsa208sha256", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_pwhash_scryptsalsa208sha256_str", MAY_BE_NULL | MAY_BE_STRING), + F0("sodium_crypto_pwhash_scryptsalsa208sha256_str_verify", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("sodium_crypto_aead_aes256gcm_is_available", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F1("sodium_crypto_sign_ed25519_sk_to_curve25519", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_sign_ed25519_pk_to_curve25519", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_encrypt", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_decrypt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_ietf_encrypt", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_ietf_decrypt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_aead_xchacha20poly1305_ietf_encrypt", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_xchacha20poly1305_ietf_decrypt", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_chacha20poly1305_ietf_keygen", MAY_BE_NULL | MAY_BE_STRING), + F1("sodium_crypto_aead_xchacha20poly1305_ietf_keygen", MAY_BE_NULL | 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_NULL | 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_NULL | 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_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("session_unset", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("session_gc", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG), + F0("session_write_close", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_TRUE), + F0("session_abort", MAY_BE_NULL | 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), + I0("session_register_shutdown", MAY_BE_NULL), + }; static HashTable func_info;