From 7edf9bc2c346ecbc6b82610d30f29431085ce0b9 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 17 Feb 2004 15:10:16 +0000 Subject: support for XMLSchema nillable attribute --- ext/soap/php_schema.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/soap/php_schema.c') 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"); } -- cgit v1.2.1