mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
fix #37807 (segmentation fault during SOAP schema import)
This commit is contained in:
parent
cb68193690
commit
26713e9afe
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ static void schema_load_file(sdlCtx *ctx, xmlAttrPtr ns, xmlChar *location, xmlA
|
|||
if (import) {
|
||||
if (ns != NULL && (new_tns == NULL || strcmp(ns->children->content,new_tns->children->content) != 0)) {
|
||||
xmlFreeDoc(doc);
|
||||
soap_error2(E_ERROR, "Parsing Schema: can't import schema from '%s', unexpected 'targetNamespace'='%s'", location, new_tns->children->content);
|
||||
soap_error2(E_ERROR, "Parsing Schema: can't import schema from '%s', unexpected 'targetNamespace'='%s'", location, ns->children->content);
|
||||
}
|
||||
if (ns == NULL && new_tns != NULL) {
|
||||
xmlFreeDoc(doc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue