summaryrefslogtreecommitdiff
path: root/ext/soap/php_schema.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-02-02 17:39:10 +0000
committerDmitry Stogov <dmitry@php.net>2004-02-02 17:39:10 +0000
commita70a620a01897579ab7d28418532a55dcfb6c459 (patch)
tree48fa928dd6b00c1be678cc78f328960335bcf19d /ext/soap/php_schema.c
parent862bf61de9a2f788899207a66794de65758b770f (diff)
downloadphp-git-a70a620a01897579ab7d28418532a55dcfb6c459.tar.gz
fix: proper handling of SOAP 1.1 href and unresolved attributes references
Diffstat (limited to 'ext/soap/php_schema.c')
-rw-r--r--ext/soap/php_schema.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c
index 69372c39ce..cde1a8ef86 100644
--- a/ext/soap/php_schema.c
+++ b/ext/soap/php_schema.c
@@ -2009,6 +2009,13 @@ static void schema_attribute_fixup(sdlPtr sdl, sdlAttributePtr attr)
}
attr->encode = (*tmp)->encode;
}
+ }
+ if (attr->name == NULL && attr->ref != NULL) {
+ char *name, *ns;
+ parse_namespace(attr->ref, &name, &ns);
+ attr->name = strdup(name);
+ if (name) {efree(name);}
+ if (ns) {efree(ns);}
}
efree(attr->ref);
attr->ref = NULL;