From 7dae9e6cadd3aa6610433105718caa1ce2d8e21e Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 2 Apr 2004 06:23:51 +0000 Subject: Fixed bug #27742 (WDSL SOAP Parsing Schema bug) --- ext/soap/php_schema.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ext/soap/php_schema.c') diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c index 8aa028cb71..985ec0ecc1 100644 --- a/ext/soap/php_schema.c +++ b/ext/soap/php_schema.c @@ -1678,7 +1678,7 @@ static int schema_element(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTyp /* TODO: support */ } else if (node_is_equal(trav,"key")) { /* TODO: support */ - } else if (node_is_equal(trav,"key")) { + } else if (node_is_equal(trav,"keyref")) { /* TODO: support */ } else { php_error(E_ERROR, "SOAP-ERROR: Parsing Schema: unexpected <%s> in element",trav->name); @@ -1954,6 +1954,10 @@ static int schema_attributeGroup(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr attrGrou } trav = attrGroup->children; + if (trav != NULL && node_is_equal(trav, "annotation")) { + /* TODO: support */ + trav = trav->next; + } while (trav != NULL) { if (node_is_equal(trav,"attribute")) { if (ref != NULL) { -- cgit v1.2.1