As far as I can tell, the location is always non-null here,
and the code wouldn't be able to meaningfully work without a
location.
ZVAL_STRINGL(&func,"__doRequest",sizeof("__doRequest")-1);
ZVAL_STRINGL(¶ms[0], buf, buf_size);
- if (location == NULL) {
- ZVAL_NULL(¶ms[1]);
- } else {
- ZVAL_STRING(¶ms[1], location);
- }
+ ZVAL_STRING(¶ms[1], location);
if (action == NULL) {
ZVAL_NULL(¶ms[2]);
} else {
if (location == NULL) {
location = binding->location;
+ ZEND_ASSERT(location);
}
if (binding->bindingType == BINDING_SOAP) {
sdlSoapBindingFunctionPtr fnb = (sdlSoapBindingFunctionPtr)fn->bindingAttributes;