752
761
err = php_stream_write(stream, soap_headers.c, soap_headers.len);
753
762
if (err != soap_headers.len) {
754
763
if (request != buf) {efree(request);}
756
764
php_stream_close(stream);
757
765
zend_hash_del(Z_OBJPROP_P(this_ptr), "httpurl", sizeof("httpurl"));
758
766
zend_hash_del(Z_OBJPROP_P(this_ptr), "httpsocket", sizeof("httpsocket"));
759
767
zend_hash_del(Z_OBJPROP_P(this_ptr), "_use_proxy", sizeof("_use_proxy"));
760
768
add_soap_fault(this_ptr, "HTTP", "Failed Sending HTTP SOAP request", NULL, NULL TSRMLS_CC);
763
772
smart_str_free(&soap_headers);
766
774
add_soap_fault(this_ptr, "HTTP", "Failed to create stream??", NULL, NULL TSRMLS_CC);
767
775
smart_str_free(&soap_headers_z);