diff options
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; |