Use variables that already received ZEND_NUM_ARGS()

This commit is contained in:
Gabriel Caruso 2018-07-22 15:54:00 -03:00
parent 26cd84d19f
commit 8ca1f47a7a
No known key found for this signature in database
GPG key ID: EA85C7988F5A6877
6 changed files with 15 additions and 22 deletions

View file

@ -1026,7 +1026,7 @@ PHP_FUNCTION(xmlrpc_server_call_method)
php_output_options out;
int argc = ZEND_NUM_ARGS();
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsz|a", &handle, &rawxml, &rawxml_len, &caller_params, &output_opts) != SUCCESS) {
if (zend_parse_parameters(argc, "rsz|a", &handle, &rawxml, &rawxml_len, &caller_params, &output_opts) != SUCCESS) {
return;
}
/* user output options */
@ -1447,4 +1447,3 @@ PHP_FUNCTION(xmlrpc_is_fault)
* c-basic-offset: 4
* End:
*/