iliaa           Mon Jan 19 21:58:13 2009 UTC

  Modified files:              
    /php-src/ext/soap   php_http.c 
  Log:
  MFB: Fixed bug #47131 (SOAP Extension ignores "user_agent" ini setting).
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?r1=1.117&r2=1.118&diff_format=u
Index: php-src/ext/soap/php_http.c
diff -u php-src/ext/soap/php_http.c:1.117 php-src/ext/soap/php_http.c:1.118
--- php-src/ext/soap/php_http.c:1.117   Wed Dec 31 11:12:35 2008
+++ php-src/ext/soap/php_http.c Mon Jan 19 21:58:13 2009
@@ -17,7 +17,7 @@
   |          Dmitry Stogov <dmi...@zend.com>                             |
   +----------------------------------------------------------------------+
 */
-/* $Id: php_http.c,v 1.117 2008/12/31 11:12:35 sebastian Exp $ */
+/* $Id: php_http.c,v 1.118 2009/01/19 21:58:13 iliaa Exp $ */
 
 #include "php_soap.h"
 #include "ext/standard/base64.h"
@@ -437,7 +437,11 @@
                                smart_str_appendl(&soap_headers, 
Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp));
                                smart_str_append_const(&soap_headers, "\r\n");
                        }
-               } else{
+               } else if (FG(user_agent)) {
+                       smart_str_append_const(&soap_headers, "User-Agent: ");
+                       smart_str_appends(&soap_headers, FG(user_agent));
+                       smart_str_append_const(&soap_headers, "\r\n");
+               } else {
                        smart_str_append_const(&soap_headers, "User-Agent: 
PHP-SOAP/"PHP_VERSION"\r\n");
                }
 



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

Reply via email to