|  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: -
Avg. Score:4.4 ± 1.0
Reproduced:16 of 16 (100.0%)
Same Version:5 (31.2%)
Same OS:5 (31.2%)
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: andrew dot hoffmann at wisc dot edu
New email:
PHP Version: OS:


 [2015-01-09 17:12 UTC] andrew dot hoffmann at wisc dot edu
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.


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 10:01:32 2024 UTC