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_sdl.c | |
parent | c796a4769052e15bf70007e2916a480074f45e67 (diff) | |
download | php-git-7edf9bc2c346ecbc6b82610d30f29431085ce0b9.tar.gz |
support for XMLSchema <element> nillable attribute
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r-- | ext/soap/php_sdl.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index e9d7246f33..3993758f15 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -877,7 +877,7 @@ static sdlPtr load_wsdl(char *struri) return ctx.sdl; } -#define WSDL_CACHE_VERSION 02 +#define WSDL_CACHE_VERSION 03 #define WSDL_CACHE_GET(ret,type,buf) memcpy(&ret,*buf,sizeof(type)); *buf += sizeof(type); #define WSDL_CACHE_GET_INT(ret,buf) ret = ((int)(*buf)[0])|((int)(*buf)[1]<<8)|((int)(*buf)[2]<<16)|((int)(*buf)[3]<<24); *buf += 4; @@ -992,14 +992,12 @@ static sdlContentModelPtr sdl_deserialize_model(sdlTypePtr *types, sdlTypePtr *e case XSD_CONTENT_ALL: case XSD_CONTENT_CHOICE: WSDL_CACHE_GET_INT(i, in); - if (i > 0) { - model->u.content = emalloc(sizeof(HashTable)); - zend_hash_init(model->u.content, i, NULL, delete_model, 0); - while (i > 0) { - sdlContentModelPtr x = sdl_deserialize_model(types, elements, in); - zend_hash_next_index_insert(model->u.content,&x,sizeof(sdlContentModelPtr),NULL); - i--; - } + model->u.content = emalloc(sizeof(HashTable)); + zend_hash_init(model->u.content, i, NULL, delete_model, 0); + while (i > 0) { + sdlContentModelPtr x = sdl_deserialize_model(types, elements, in); + zend_hash_next_index_insert(model->u.content,&x,sizeof(sdlContentModelPtr),NULL); + i--; } break; case XSD_CONTENT_GROUP_REF: |