From d6cd18c08343c71c2a4631893cb13cce10541999 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 18 Jul 2006 09:24:54 +0000 Subject: [PATCH] Fixed compilation error --- ext/soap/php_encoding.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 79a983a629..b0698bd0b2 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -353,11 +353,13 @@ xmlNodePtr master_to_xml(encodePtr encode, zval *data, int style, xmlNodePtr par zend_uchar utype = zend_hash_get_current_key_ex(SOAP_GLOBAL(class_map), &type_name, &type_len, &idx, 0, &pos); if (utype == HASH_KEY_IS_STRING || utype == HASH_KEY_IS_UNICODE) { + encodePtr enc; + if (utype == HASH_KEY_IS_UNICODE) { type_name.s = soap_unicode_to_string(type_name.u, type_len TSRMLS_CC); } /* TODO: namespace isn't stored */ - encodePtr enc = get_encoder(SOAP_GLOBAL(sdl), SOAP_GLOBAL(sdl)->target_ns, type_name.s); + enc = get_encoder(SOAP_GLOBAL(sdl), SOAP_GLOBAL(sdl)->target_ns, type_name.s); if (enc) { encode = enc; } else if (SOAP_GLOBAL(sdl)) { -- 2.40.0