summaryrefslogtreecommitdiff
path: root/ext/soap/php_schema.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-02-17 15:10:16 +0000
committerDmitry Stogov <dmitry@php.net>2004-02-17 15:10:16 +0000
commit7edf9bc2c346ecbc6b82610d30f29431085ce0b9 (patch)
treec007c56b7033ba3856284ee323c685c0e82a4fa8 /ext/soap/php_schema.c
parentc796a4769052e15bf70007e2916a480074f45e67 (diff)
downloadphp-git-7edf9bc2c346ecbc6b82610d30f29431085ce0b9.tar.gz
support for XMLSchema <element> nillable attribute
Diffstat (limited to 'ext/soap/php_schema.c')
-rw-r--r--ext/soap/php_schema.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c
index 6918cc7492..34bf786f1d 100644
--- a/ext/soap/php_schema.c
+++ b/ext/soap/php_schema.c
@@ -2135,6 +2135,9 @@ static void schema_type_fixup(sdlCtx *ctx, sdlTypePtr type)
if (zend_hash_find(ctx->sdl->elements, type->ref, strlen(type->ref)+1, (void**)&tmp) == SUCCESS) {
type->encode = (*tmp)->encode;
/* TODO: nillable */
+ if ((*tmp)->nillable) {
+ type->nillable = 1;
+ }
} else {
php_error(E_ERROR, "SOAP-ERROR: Parsing Schema: unresolved element 'ref' attribute");
}