From 90de6c821694a3cbe09ceea85a31bf238db308ee Mon Sep 17 00:00:00 2001 From: George Schlossnagle Date: Fri, 7 Oct 2005 05:14:31 +0000 Subject: [PATCH] Permit correct usage of inherited encoders (from restriction/extension "base" directives) for xml response decoding. --- ext/soap/php_encoding.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index c15c51ae2e..2e28e41e42 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -1189,6 +1189,7 @@ static zval *to_zval_object(encodeTypePtr type, xmlNodePtr data) enc = sdlType->encode; while (enc && enc->details.sdl_type && + enc->details.sdl_type->kind != XSD_TYPEKIND_COMPLEX && enc->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && enc->details.sdl_type->kind != XSD_TYPEKIND_LIST && enc->details.sdl_type->kind != XSD_TYPEKIND_UNION) { @@ -1211,6 +1212,7 @@ static zval *to_zval_object(encodeTypePtr type, xmlNodePtr data) sdlType->encode && type != &sdlType->encode->details) { if (sdlType->encode->details.sdl_type && + sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_COMPLEX && sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_SIMPLE && sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_LIST && sdlType->encode->details.sdl_type->kind != XSD_TYPEKIND_UNION) { -- 2.40.0