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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 12 18:01:28 2024 UTC