diff options
| author | Dmitry Stogov <dmitry@php.net> | 2008-10-16 15:49:18 +0000 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@php.net> | 2008-10-16 15:49:18 +0000 |
| commit | 9973dfd8390e47ddb1c2bb2a1617d9a333334dcc (patch) | |
| tree | 7efa63b32af1f008ff047390515eb6ebcb53984c | |
| parent | 35f7c44a7d53166213a865288edafb249cbf36f0 (diff) | |
| download | php-git-9973dfd8390e47ddb1c2bb2a1617d9a333334dcc.tar.gz | |
ws
| -rw-r--r-- | ext/soap/php_encoding.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index dc2dcfef2b..97cdaab1c8 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -447,21 +447,21 @@ static xmlNodePtr master_to_xml_int(encodePtr encode, zval *data, int style, xml zend_binary_strncasecmp(ce->name, ce->name_length, Z_STRVAL_PP(tmp), ce->name_length, ce->name_length) == 0 && zend_hash_get_current_key_ex(SOAP_GLOBAL(class_map), &type_name, &type_len, &idx, 0, &pos) == HASH_KEY_IS_STRING) { - /* TODO: namespace isn't stored */ - encodePtr enc = NULL; - if (SOAP_GLOBAL(sdl)) { - enc = get_encoder(SOAP_GLOBAL(sdl), SOAP_GLOBAL(sdl)->target_ns, type_name); - if (!enc) { - enc = find_encoder_by_type_name(SOAP_GLOBAL(sdl), type_name); - } - } - if (enc) { - if (encode != enc && style == SOAP_LITERAL) { + /* TODO: namespace isn't stored */ + encodePtr enc = NULL; + if (SOAP_GLOBAL(sdl)) { + enc = get_encoder(SOAP_GLOBAL(sdl), SOAP_GLOBAL(sdl)->target_ns, type_name); + if (!enc) { + enc = find_encoder_by_type_name(SOAP_GLOBAL(sdl), type_name); + } + } + if (enc) { + if (encode != enc && style == SOAP_LITERAL) { add_type = 1; - } - encode = enc; - } - break; + } + encode = enc; + } + break; } } } |
