summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/soap/soap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/soap/soap.c b/ext/soap/soap.c
index 3334689ed9..3d76c0fc70 100644
--- a/ext/soap/soap.c
+++ b/ext/soap/soap.c
@@ -2215,11 +2215,7 @@ static int do_request(zval *this_ptr, xmlDoc *request, char *location, char *act
ZVAL_STRINGL(&func,"__doRequest",sizeof("__doRequest")-1);
ZVAL_STRINGL(&params[0], buf, buf_size);
- if (location == NULL) {
- ZVAL_NULL(&params[1]);
- } else {
- ZVAL_STRING(&params[1], location);
- }
+ ZVAL_STRING(&params[1], location);
if (action == NULL) {
ZVAL_NULL(&params[2]);
} else {
@@ -2371,6 +2367,7 @@ static void do_soap_call(zend_execute_data *execute_data,
if (location == NULL) {
location = binding->location;
+ ZEND_ASSERT(location);
}
if (binding->bindingType == BINDING_SOAP) {
sdlSoapBindingFunctionPtr fnb = (sdlSoapBindingFunctionPtr)fn->bindingAttributes;