fmk Wed, 13 Jan 2010 07:22:21 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293490
Log:
MFB. Don't free soap_headers just before comparing the length. This causes
SoapClient to fail when requesting a URL
Changed paths:
U php/php-src/trunk/ext/soap/php_http.c
Modified: php/php-src/trunk/ext/soap/php_http.c
===================================================================
--- php/php-src/trunk/ext/soap/php_http.c 2010-01-13 06:55:03 UTC (rev
293489)
+++ php/php-src/trunk/ext/soap/php_http.c 2010-01-13 07:22:21 UTC (rev
293490)
@@ -764,7 +764,6 @@
smart_str_0(&soap_headers);
err = php_stream_write(stream, soap_headers.c,
soap_headers.len);
- smart_str_free(&soap_headers);
if (err != soap_headers.len) {
if (request != buf) {efree(request);}
php_stream_close(stream);
@@ -778,6 +777,7 @@
smart_str_free(&soap_headers_z);
return FALSE;
}
+ smart_str_free(&soap_headers);
} else {
add_soap_fault(this_ptr, "HTTP", "Failed to create stream??",
NULL, NULL TSRMLS_CC);
smart_str_free(&soap_headers_z);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php