|  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.5 ± 1.0
Reproduced:15 of 15 (100.0%)
Same Version:4 (26.7%)
Same OS:5 (33.3%)
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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
50 - 19 = ?
Subscribe to this entry?

 [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-2023 The PHP Group
All rights reserved.
Last updated: Wed Mar 22 11:03:40 2023 UTC