]> granicus.if.org Git - php/commitdiff
Fixed WSDL parsing
authorDmitry Stogov <dmitry@zend.com>
Thu, 15 May 2014 12:21:13 +0000 (16:21 +0400)
committerDmitry Stogov <dmitry@zend.com>
Thu, 15 May 2014 12:21:13 +0000 (16:21 +0400)
ext/soap/php_sdl.c

index ff98fae6965e55f035407b6e23af7b5b92934972..faafdecee7ba4eaaccdebd2887aebd12a0109648 100644 (file)
@@ -446,7 +446,7 @@ static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include
 static sdlSoapBindingFunctionHeaderPtr wsdl_soap_binding_header(sdlCtx* ctx, xmlNodePtr header, char* wsdl_soap_namespace, int fault)
 {
        xmlAttrPtr tmp;
-       xmlNodePtr *message, part;
+       xmlNodePtr message, part;
        char *ctype;
        sdlSoapBindingFunctionHeaderPtr h;
 
@@ -469,7 +469,7 @@ static sdlSoapBindingFunctionHeaderPtr wsdl_soap_binding_header(sdlCtx* ctx, xml
        if (!tmp) {
                soap_error0(E_ERROR, "Parsing WSDL: Missing part attribute for <header>");
        }
-       part = get_node_with_attribute_ex((*message)->children, "part", WSDL_NAMESPACE, "name", (char*)tmp->children->content, NULL);
+       part = get_node_with_attribute_ex(message->children, "part", WSDL_NAMESPACE, "name", (char*)tmp->children->content, NULL);
        if (!part) {
                soap_error1(E_ERROR, "Parsing WSDL: Missing part '%s' in <message>", tmp->children->content);
        }