From: Dmitry Stogov Date: Thu, 4 Nov 2004 15:29:54 +0000 (+0000) Subject: Fixed bug #30685 (Malformed SOAPClient http header reequest). X-Git-Tag: php-5.0.3RC1~88 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=49c5edcb9f870f6e640a5d0cf75d274af02403b9;p=php Fixed bug #30685 (Malformed SOAPClient http header reequest). --- diff --git a/NEWS b/NEWS index 31fee1b91d..4ba0d5fc08 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2004, PHP 5.0.3 +- Fixed bug #30685 (Malformed SOAPClient http header reequest). (Dmitry) - Fixed bug #30645 (def. multi result set support for mysql_connect). (Georg) - Fixed error handling in mysqli_multi_query. (Georg) - Fixed a problem with SPL iterators aggregating the innner iterator. (Marcus) diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 9c4d47624c..ed2813abb7 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -388,14 +388,15 @@ try_again: */ "User-Agent: PHP SOAP 0.1\r\n"); if (soap_version == SOAP_1_2) { - smart_str_append_const(&soap_headers,"Content-Type: application/soap+xml; charset=\"utf-8"); + smart_str_append_const(&soap_headers,"Content-Type: application/soap+xml; charset=utf-8"); if (soapaction) { - smart_str_append_const(&soap_headers,"\"; action=\""); + smart_str_append_const(&soap_headers,"; action=\""); smart_str_appends(&soap_headers, soapaction); + smart_str_append_const(&soap_headers,"\""); } - smart_str_append_const(&soap_headers,"\"\r\n"); + smart_str_append_const(&soap_headers,"\r\n"); } else { - smart_str_append_const(&soap_headers,"Content-Type: text/xml; charset=\"utf-8\"\r\n"); + smart_str_append_const(&soap_headers,"Content-Type: text/xml; charset=utf-8\r\n"); if (soapaction) { smart_str_append_const(&soap_headers, "SOAPAction: \""); smart_str_appends(&soap_headers, soapaction); diff --git a/ext/soap/soap.c b/ext/soap/soap.c index 53486966d7..5038f9da18 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -1296,7 +1296,7 @@ PHP_METHOD(SoapServer, handle) INIT_ZVAL(readfile_ret); MAKE_STD_ZVAL(param); - sapi_add_header("Content-Type: text/xml; charset=\"utf-8\"", sizeof("Content-Type: text/xml; charset=\"utf-8\"")-1, 1); + sapi_add_header("Content-Type: text/xml; charset=utf-8", sizeof("Content-Type: text/xml; charset=utf-8")-1, 1); ZVAL_STRING(param, service->sdl->source, 1); ZVAL_STRING(&readfile, "readfile", 1); if (call_user_function(EG(function_table), NULL, &readfile, &readfile_ret, 1, ¶m TSRMLS_CC) == FAILURE) { @@ -1312,7 +1312,7 @@ PHP_METHOD(SoapServer, handle) } else { soap_server_fault("Server", "WSDL generation is not supported yet", NULL, NULL, NULL TSRMLS_CC); /* - sapi_add_header("Content-Type: text/xml; charset=\"utf-8\"", sizeof("Content-Type: text/xml; charset=\"utf-8\""), 1); + sapi_add_header("Content-Type: text/xml; charset=utf-8", sizeof("Content-Type: text/xml; charset=utf-8"), 1); PUTS("\n