php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #68782 http_connect should provide more context when failing
Submitted: 2015-01-09 17:12 UTC Modified: -
Votes:17
Avg. Score:4.6 ± 0.7
Reproduced:13 of 13 (100.0%)
Same Version:4 (30.8%)
Same OS:4 (30.8%)
From: andrew dot hoffmann at wisc dot edu Assigned:
Status: Open Package: SOAP related
PHP Version: master-Git-2015-01-09 (Git) OS: N/A
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-01-09 17:12 UTC] andrew dot hoffmann at wisc dot edu
Description:
------------
Line 508 (master-Git-2015-01-09) of /ext/soap/php_http.c:

add_soap_fault(this_ptr, "HTTP", "Could not connect to host", NULL, NULL);

This is a generic error message issued when http_connect() does not a return a stream on line 502. 

http_connect() is a 150-line method that can fail for many possible reasons. More context as to why the HTTP connection attempt failed would improve debugging SOAP connections using SSL.

http_connect() could benefit from having some of its work encapsulated into smaller functions.


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 25 00:01:26 2020 UTC