php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53776
Patch soap_patch revision 2011-01-18 11:14 UTC by christian dot boitel at gmail dot com

Patch soap_patch for SOAP related Bug #53776

Patch version 2011-01-18 11:14 UTC

Return to Bug #53776 | Download this patch
Patch Revisions:

Developer: christian.boitel@gmail.com

--- php-5.3.2/ext/soap/php_http.c	2010-02-03 21:29:09.000000000 +0100
+++ php_soapfdjpatch-5.3.2/ext/soap/php_http.c	2011-01-17 18:16:04.000000000 +0100
@@ -88,6 +88,8 @@
 	zval **proxy_host, **proxy_port, **tmp;
 	char *host;
 	char *name;
+	const char *persistent_id;
+	zval **ctx_opt;
 	long namelen;
 	int port;
 	int old_error_reporting;
@@ -117,10 +119,14 @@
 
 	namelen = spprintf(&name, 0, "%s://%s:%d", (use_ssl && !*use_proxy)? "ssl" : "tcp", host, port);
 
+	persistent_id=NULL;
+	if (SUCCESS == php_stream_context_get_option(context, "soap", "http_persistent", &ctx_opt) && Z_TYPE_PP(ctx_opt) == IS_BOOL && Z_LVAL_PP(ctx_opt) == 1) {
+		persistent_id=name;
+        }
 	stream = php_stream_xport_create(name, namelen,
 		ENFORCE_SAFE_MODE | REPORT_ERRORS,
 		STREAM_XPORT_CLIENT | STREAM_XPORT_CONNECT,
-		NULL /*persistent_id*/,
+		persistent_id,
 		timeout,
 		context,
 		NULL, NULL);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC