summaryrefslogtreecommitdiff
path: root/ext/soap/php_encoding.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-02-02 21:27:13 +0000
committerMarcus Boerger <helly@php.net>2004-02-02 21:27:13 +0000
commitb1c77fcce38f2ebebc2de93854aacc24e47f7fb8 (patch)
treec532e7394e9533fa8b90b961a8591d540df38da1 /ext/soap/php_encoding.c
parent391494c0eff7f088bc896e7ad30dac95ae4de0dd (diff)
downloadphp-git-b1c77fcce38f2ebebc2de93854aacc24e47f7fb8.tar.gz
TSRM fixes
Diffstat (limited to 'ext/soap/php_encoding.c')
-rw-r--r--ext/soap/php_encoding.c3
1 files changed, 2 insertions, 1 deletions
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) {