dmitry          Wed Dec  1 11:59:23 2004 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src    NEWS 
    /php-src/ext/soap   php_http.c 
  Log:
  Fixed bug #30359 (SOAP client requests have no port in "Host" field ).
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.135&r2=1.1760.2.136&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.135 php-src/NEWS:1.1760.2.136
--- php-src/NEWS:1.1760.2.135   Wed Dec  1 09:01:57 2004
+++ php-src/NEWS        Wed Dec  1 11:59:23 2004
@@ -39,6 +39,8 @@
 - Fixed bug #30375 (cal_info() does not work without a parameter). (Ilia)
 - Fixed bug #30362 (stream_get_line() not handling end string correctly).
   (Ilia)
+- Fixed bug #30359 (SOAP client requests have no port in "Host" field ).
+  (Dmitry)
 - Fixed bug #30356 (str_ireplace() does not work on all strings). (Ilia)
 - Fixed bug #30344 (Reflection::getModifierNames() returns too long strings).
   (Marcus)
http://cvs.php.net/diff.php/php-src/ext/soap/php_http.c?r1=1.55.2.2&r2=1.55.2.3&ty=u
Index: php-src/ext/soap/php_http.c
diff -u php-src/ext/soap/php_http.c:1.55.2.2 
php-src/ext/soap/php_http.c:1.55.2.3
--- php-src/ext/soap/php_http.c:1.55.2.2        Thu Nov  4 10:29:54 2004
+++ php-src/ext/soap/php_http.c Wed Dec  1 11:59:23 2004
@@ -17,7 +17,7 @@
   |          Dmitry Stogov <[EMAIL PROTECTED]>                             |
   +----------------------------------------------------------------------+
 */
-/* $Id: php_http.c,v 1.55.2.2 2004/11/04 15:29:54 dmitry Exp $ */
+/* $Id: php_http.c,v 1.55.2.3 2004/12/01 16:59:23 dmitry Exp $ */
 
 #include "php_soap.h"
 #include "ext/standard/base64.h"
@@ -380,6 +380,10 @@
                smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"
                        "Host: ");
                smart_str_appends(&soap_headers, phpurl->host);
+               if (phpurl->port != 80) {
+                       smart_str_appendc(&soap_headers, ':');
+                       smart_str_append_unsigned(&soap_headers, phpurl->port);
+               }
                smart_str_append_const(&soap_headers, "\r\n"
                        "Connection: Keep-Alive\r\n"
 /*

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to