From: Antony Dovgal Date: Mon, 19 Jun 2006 11:43:36 +0000 (+0000) Subject: fix #37807 (segmentation fault during SOAP schema import) X-Git-Tag: RELEASE_1_0_0RC1~2699 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26713e9afe52d12b0e39010a31d2749ab1ca58ed;p=php fix #37807 (segmentation fault during SOAP schema import) --- diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c index c448cf5fb7..42f05c64ff 100644 --- a/ext/soap/php_schema.c +++ b/ext/soap/php_schema.c @@ -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);