From b1c77fcce38f2ebebc2de93854aacc24e47f7fb8 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Mon, 2 Feb 2004 21:27:13 +0000 Subject: TSRM fixes --- ext/soap/php_encoding.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/soap/php_encoding.c') diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 12d0ca0395..ca21504ed2 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -2329,13 +2329,14 @@ static xmlNodePtr check_and_resolve_href(xmlNodePtr data) href = get_attribute_ex(data->properties, "ref", SOAP_1_2_ENC_NAMESPACE); if (href) { char* id; + xmlNodePtr ret; if (href->children->content[0] == '#') { id = href->children->content+1; } else { id = href->children->content; } - xmlNodePtr ret = get_node_with_attribute_recursive_ex(data->doc->children, NULL, NULL, "id", id, SOAP_1_2_ENC_NAMESPACE); + ret = get_node_with_attribute_recursive_ex(data->doc->children, NULL, NULL, "id", id, SOAP_1_2_ENC_NAMESPACE); if (!ret) { php_error(E_ERROR,"SOAP-ERROR: Encoding: Unresolved reference '%s'",href->children->content); } else if (ret == data) { -- cgit v1.2.1