]> granicus.if.org Git - php/commitdiff
Fixed unicode support
authorDmitry Stogov <dmitry@php.net>
Thu, 7 Sep 2006 13:25:46 +0000 (13:25 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 7 Sep 2006 13:25:46 +0000 (13:25 +0000)
ext/soap/soap.c

index 3a765dd0815aef2e59a79b74866da26d0dce3468..088343a6b8e12244434bf799d0227ea20396858a 100644 (file)
@@ -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;