From cbec795c0b06a6649dcb975cb1ae0f63f23f96d1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 18 Feb 2004 07:35:34 +0000 Subject: [PATCH] fix: SoapFault constructor fixed to confirm documentation. --- ext/soap/soap.c | 5 +++-- 1 file 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"); } -- 2.50.1