Code
- get_post_data()
- pam_auth_session()
- _php_api_exception_handler()
- calculate_posthash()
- get_call_method()
- authenticate_method()
- get_and_validate_api_headers()
- map_api_hash()
- api_auth_hmac()
- verify_parameters()
- api_auth_key()
- get_parameters_for_method()
- cache_hmac_check_replay()
- calculate_hmac()
- _elgg_ws_get_parameter_names()
- service_handler()
- pam_auth_usertoken()
- serialise_parameters()
- _php_api_error_handler()
- execute_method()
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.