diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-02-02 17:39:10 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-02-02 17:39:10 +0000 |
commit | a70a620a01897579ab7d28418532a55dcfb6c459 (patch) | |
tree | 48fa928dd6b00c1be678cc78f328960335bcf19d /ext/soap/php_schema.c | |
parent | 862bf61de9a2f788899207a66794de65758b770f (diff) | |
download | php-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.c | 7 |
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; |