From: George Peter Banyard Date: Wed, 30 Sep 2020 05:37:16 +0000 (+0300) Subject: Fixed incorrect error message X-Git-Tag: php-7.3.24RC1~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=161636385057fdf7bc23539fc1714fc9c1526fa1;p=php Fixed incorrect error message --- diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c index edfe694021..3eb66a5c03 100644 --- a/ext/soap/php_schema.c +++ b/ext/soap/php_schema.c @@ -1614,8 +1614,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);