com php-src: Fixed WSDL parsing: ext/soap/php_sdl.c
| From: | Dmitry Stogov | Date: | Thu, 15 May 2014 12:21:13 +0000 |
| Subject: | com php-src: Fixed WSDL parsing: ext/soap/php_sdl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78377@lists.php.net to get a copy of this message | ||
Commit: 40a8156966542e35d77679dda374217ba25b3c36
Author: Dmitry Stogov <dmitry@zend.com> Thu, 15 May 2014 16:21:13 +0400
Parents: 3e131b41b2fc3a19e30c66415316d9035bd79b8d
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=40a8156966542e35d77679dda374217ba25b3c36
Log:
Fixed WSDL parsing
Changed paths:
M ext/soap/php_sdl.c
Diff:
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index ff98fae..faafdec 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -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);
}