From: Dmitry Stogov Date: Thu, 7 Sep 2006 13:25:46 +0000 (+0000) Subject: Fixed unicode support X-Git-Tag: RELEASE_1_0_0RC1~1741 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cd00c73fcf83c440ff78e111a5f7139a3d52177;p=php Fixed unicode support --- diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 3a765dd081..088343a6b8 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -4155,7 +4155,8 @@ static xmlDocPtr serialize_response_call(sdlFunctionPtr function, char *function body = xmlNewChild(envelope, ns, BAD_CAST("Body"), NULL); param = xmlNewChild(body, ns, BAD_CAST("Fault"), NULL); - if (zend_hash_find(prop, "faultcodens", sizeof("faultcodens"), (void**)&tmp) == SUCCESS && Z_TYPE_PP(tmp) == IS_STRING) { + if (zend_hash_find(prop, "faultcodens", sizeof("faultcodens"), (void**)&tmp) == SUCCESS && + (Z_TYPE_PP(tmp) == IS_STRING || Z_TYPE_PP(tmp) == IS_UNICODE)) { fault_ns = soap_encode_string(*tmp, NULL TSRMLS_CC); } use = SOAP_LITERAL;