From 3cad8e2fb4cd251978fd2e804fe581bdcb283459 Mon Sep 17 00:00:00 2001
From: Dmitry Stogov <dmitry@php.net>
Date: Mon, 24 Oct 2005 07:43:48 +0000
Subject: [PATCH] Fixed bug #34950 (Unable to get WSDL through proxy)

---
 ext/soap/php_sdl.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index 08a96fe841..50055c5f20 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -2235,6 +2235,7 @@ sdlPtr get_sdl(zval *this_ptr, char *uri TSRMLS_DC)
 		smart_str_appends(&proxy,Z_STRVAL_PP(proxy_host));
 		smart_str_appends(&proxy,":");
 		smart_str_appends(&proxy,Z_STRVAL(str_port));
+		smart_str_0(&proxy);
 		zval_dtor(&str_port);
 		MAKE_STD_ZVAL(str_proxy);
 		ZVAL_STRING(str_proxy, proxy.c, 1);
@@ -2246,6 +2247,11 @@ sdlPtr get_sdl(zval *this_ptr, char *uri TSRMLS_DC)
 		php_stream_context_set_option(context, "http", "proxy", str_proxy);
 		zval_ptr_dtor(&str_proxy);
 
+		MAKE_STD_ZVAL(str_proxy);
+		ZVAL_BOOL(str_proxy, 1);
+		php_stream_context_set_option(context, "http", "request_fulluri", str_proxy);
+		zval_ptr_dtor(&str_proxy);
+
 		proxy_authentication(this_ptr, &headers TSRMLS_CC);
 	}
 
-- 
2.40.0