fmk Wed, 13 Jan 2010 07:26:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293491
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/branches/PHP_5_2/ext/soap/php_http.c
Modified: php/php-src/branches/PHP_5_2/ext/soap/php_http.c
===================================================================
--- php/php-src/branches/PHP_5_2/ext/soap/php_http.c 2010-01-13 07:22:21 UTC
(rev 293490)
+++ php/php-src/branches/PHP_5_2/ext/soap/php_http.c 2010-01-13 07:26:08 UTC
(rev 293491)
@@ -709,7 +709,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);
@@ -720,6 +719,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