diff options
Diffstat (limited to 'ext/soap/soap.c')
-rw-r--r-- | ext/soap/soap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 5ab8a3687e..4962adf2c3 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -670,10 +670,11 @@ PHP_METHOD(soapfault,soapfault) int fault_string_len, fault_code_len, fault_actor_len; zval *details = NULL; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|zs", + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|s!z!", &fault_code, &fault_code_len, &fault_string, &fault_string_len, - &details, &fault_actor, &fault_actor_len) == FAILURE) { + &fault_actor, &fault_actor_len, + &details) == FAILURE) { php_error(E_ERROR, "Invalid arguments to SoapFault constructor"); } |