Merge branch 'PHP-7.4'

* PHP-7.4:
  Fixed incorrect error message
This commit is contained in:
Dmitry Stogov 2020-09-30 08:37:43 +03:00
commit 5f24999237

View File

@ -1612,8 +1612,6 @@ static int schema_element(sdlPtr sdl, xmlAttrPtr tns, xmlNodePtr element, sdlTyp
attr = get_attribute(attrs, "default");
if (attr) {
if (ref != NULL) {
soap_error0(E_ERROR, "Parsing Schema: element has both 'ref' and 'fixed' attributes");
} else if (ref != NULL) {
soap_error0(E_ERROR, "Parsing Schema: element has both 'default' and 'fixed' attributes");
}
cur_type->def = estrdup((char*)attr->children->content);