diff options
author | Frank M. Kromann <fmk@php.net> | 2010-01-13 07:22:21 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2010-01-13 07:22:21 +0000 |
commit | c4633e7bdf360afd3d63edef768197f932412b07 (patch) | |
tree | cae2dcace498c168991c6511c06213c37cb41018 | |
parent | 4ad43efcb4954aab92c8fc675e7f1411748914bf (diff) | |
download | php-git-c4633e7bdf360afd3d63edef768197f932412b07.tar.gz |
MFB. Don't free soap_headers just before comparing the length. This causes SoapClient to fail when requesting a URL
-rw-r--r-- | ext/soap/php_http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 866fa418f5..440d365caa 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -764,7 +764,6 @@ try_again: 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 @@ try_again: 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); |