fmk Wed, 13 Jan 2010 05:32:02 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293487
Log:
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_3/ext/soap/php_http.c
Modified: php/php-src/branches/PHP_5_3/ext/soap/php_http.c
===================================================================
--- php/php-src/branches/PHP_5_3/ext/soap/php_http.c 2010-01-13 05:16:53 UTC
(rev 293486)
+++ php/php-src/branches/PHP_5_3/ext/soap/php_http.c 2010-01-13 05:32:02 UTC
(rev 293487)
@@ -759,7 +759,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);
@@ -770,6 +769,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