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:21
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
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 19:01:30 2024 UTC