diff options
author | Dmitry Stogov <dmitry@php.net> | 2004-02-17 15:10:16 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2004-02-17 15:10:16 +0000 |
commit | 7edf9bc2c346ecbc6b82610d30f29431085ce0b9 (patch) | |
tree | c007c56b7033ba3856284ee323c685c0e82a4fa8 /ext/soap/php_schema.c | |
parent | c796a4769052e15bf70007e2916a480074f45e67 (diff) | |
download | php-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.c | 3 |
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"); } |